Create DTD from XML document
Hello,
I have a little problem creating a DTD from an XML document. The XML document looks the following:
<data name="data1">
<value id="abc" name="value1" />
<value id="def" name="value2" />
<value id="ghi" name="value3" />
</data>
<data name="data2">
<value id="123" name="valueA" />
<value id="456" name="valueB" />
<value id="789" name="valueC" />
</data>
The problem concerns the attribute list of the value element,
on the one hand I could create a DTD like this:
<!ATTLIST value id CDATA #REQUIRED
name CDATA #REQUIRED
>
On the other hand I could do it like this:
<!ATTLIST value id (abc|def|ghi|123|456|789) #REQUIRED
name (value1|value2|value3|valueA|valueB|valueC)
#REQUIRED
>
Now I don't know what's the right way. I would be glad if anybody could give me support for my problem.
Thank you very much,
Findus
No...this is not the solution for my problem. The first problem with the code you posted is that I can create a valid XML document like this:
<data name="data2">
<value id="123" name="value1" />
<value id="456" name="value2" />
<value id="789" name="value3" />
</data>
(Please compare to the lines below in order to recognize the difference)
I want the user to create only documents like this:
<data name="data2">
<value id="123" name="valueA" />
<value id="456" name="valueB" />
<value id="789" name="valueC" />
</data>
So I want to define special attribute pairs in my DTD, like ' the value attribute id="123" works only with the attribute name="valueA"! '
Is it possible to do so ?
Thanx a lot,
Findus
Similar Messages
-
How to create DTD from XML using DOM
Hi,
Is there a way to create a corrosponding DTD of a xml-file using DOM. I have a XML-file that's pretty huge I want to create a DTD for that XML-file using DOM. Can anyone plz. lead me how to do this. I tried to use XMLSpy to convert the XML into DTD but the resulting DTD is not correct. Is there a way to create the DTD using DOM.
Any help is really appreciated. ThanksWhen you say you are trying to convert XML to DTD, do you mean you are trying to convert a XSD (schema) to a DTD, or that you are trying to create a schema that corresponds to a given XML document.
Realize that DTDs are not very powerful. XSD documents allow for much more detail. I don't have a proof, but I'm absolutely confident that any DTD can be expressed as a schema but not all schemas can be represented as a DTD. In other words, DTDs are not worth the trouble, in my opinion. -
Create TO from material document automatically
Hi Experts,
I'd like to ask for a solution about Create TO from material document automatically.
Business Scenario:
Normally, user will create TO from material document by LT06, then confirm it by LT12. If there is no stock on the shelf at the time when user confirms it, user will put quantity zero when confirmation by LT12, then user will create a new TO according to same material document.
Requirement:
According to scenario above, if there is no stock on the shelf, user wants to create a TO from material document automatically when he confirms the first TO.
here I'd like to ask if there is any solution on it?
We tried to use user exit: EXIT_SAPLL03T_002, and call transaction in it.
but result is: first TO is not confirmed with zero quantity yet, so new TO can not be created.
Please tell if there is any other solution, many thanks.
Best Regards,
H.BHi
To my understanding at the first time when TO is created for the material document and stock is not available using the available user exit in TO confirmation u can forcibly confirm the TO but for the second time TO creation and confirmation there wont be any trigger point( as bcz we have config to create TO immediately ony when mat doc is created) so for that u need to schedule a job for creation and confirm of TO's for the open mat documents.
Regards
Amarnatha -
Create Notification from Measurement Document IK11 (user-exit IMRC0001)
Hi Experts,
I have to create Create Notification from Measurement Document (IK11) using user-exit IMRC0001. I have some doubts regarding this.
1) what is the function module to create notification from Measurement Document.
2) can u give the table name to see Measurement Document.
3) where we can see the measuring reading field names to create Measurement Document.
Thanks.................
B Z.hi check this....
table for measurement IMRG
http://help.sap.com/saphelp_nw04/helpdata/en/af/cb5447461411d189f20000e81ddfac/frameset.htm -
How to filter xml using dtd and create a new xml document
Good morning my name is Antonio and I'm an italian programmer.
I need an help about the follow question.
I want to filter the contents of a XML document using a DTD to allow
only the valid elements and attributes as specified in the DTD to be
passed through to the output, any data that does not conform to the DTD
should be filtered out.
To resolve this problem there's XML Translator Generator (XTransGen): http://www.alphaworks.ibm.com/tech/xmltranslatorgenerator
but at moment it's not avaiable.
Can you help me?
Many thanks.
ciao
Antonio...
-
How can create schema from this document.
Thank you for reply~
The following is that I have.
<?xml version='1.0'?>
<conference>
<proceedings key="AlbenR00">
<pro_book>
<editor>Lauralee Alben</editor>
<editor>Michael Rigsby</editor>
<title>Envisioning the E-Quarium: Strategic Design Planning for the Monterey Bay Aquarium''s Website.</title>
<pages>452-454</pages>
<year>2000</year>
<booktitle>Symposium on Designing Interactive Systems</booktitle>
<series> <--declared with ANY in DTD
<href>db/conf/eld.htm</href>
<source>Information Retrieval</source>
</series>
</pro_book>
</proceedings>
</conference>
I want to create DB schema from this document, but because I don't know how the document is stored in Oracle8i with object-relational schema when the document has more two level deep.
(In sample of XSU,all XML documents has only one level deep.)
Would you create schema from above simple document,please? It will be very helpful to me!!
Thank you for reading my e-mail.Just stop using it and remove any data from your profile that you don't want there. You can't actually remove your account or your old posts from the server.
If you have registered to have notification emails sent to you, click 'My Stuff' at top right, select 'Preferences' , then in the next page select the 'Email Notification Preferences' tab and click all the 'No' radio buttons. Then click 'Save'.
If you already have notifications set on some threads you will still get emails from them. Click on your username at the top, then under 'Actions' in the right sidebar, select "'Manage email notifications.' This will show the threads you've set up notifications on in the past. Select those you want to stop and click the 'Remove Selected Notifications' button at bottom. -
How do i query attributes from xml documents
I want to to query only details in Issue id="705230" (id is an attribute)
I tried this, but does not help. I should be able to query the value of core_org_id attribute
select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/core_org_id) CORE_ORG_ID from from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
-- does not return anything....
I tried to extract value for R_DATE & R_REVIEW_DATE for issue id=705230, but iam not able to.
Data for all the issues is retured.
Here is the query used...
select extract(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue') ISSUE from pcr_files where existsNode(CLOB_DATA, 'PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]')=1;
Here is the part of XML document iam querying on...
- <ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
- <ns1:PcrOrganization core_org_id="345840">
<ns1:PcrLinkedTo value="ISSUE" />
- <ns1:AdditionalInfo>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:Issues>
- <ns1:Issue id="705230">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:IssueDetail id="114766798">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
- <ns1:Issue id="727193">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
- <ns1:IssueDetail id="117994574">
- <ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL"><br></br>MGH</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
</ns1:Issues>
</ns1:PcrOrganization>
</ns1:PcrDocument>I did not include the name space declaration for it is working fine. Really? Then I suppose you must be using a schema-based XMLType column?
Is it Object-Relational or Binary XML storage?
You mentioned it is depricated in 11.2, but iam able to run it on 11.2.Deprecated doesn't mean it ceases functioning.
Any suggestions to covert this to XMLTable/XMLQuery format please..If you read the documentation, it covers this part too ;)
Example :
create table tmp_xml of xmltype;
insert into tmp_xml values(
xmltype('<ns1:PcrDocument id="PCR-13562" title="EU Disclosures - EC 1060/2009" version="1" pcrPublishDate="2012-01-11T12:49:02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://integration.mysite.com/ServiceSchema/v3">
<ns1:PcrRatingDetails>
<ns1:LeadAnalyst>
<ns1:FirstName>xxxxx</ns1:FirstName>
<ns1:MiddleName/>
<ns1:LastName>xxxxxx</ns1:LastName>
<ns1:Title>Director</ns1:Title>
<ns1:Label>Primary Analyst</ns1:Label>
<ns1:Telephone>xxxxxxxxxxxx</ns1:Telephone>
<ns1:Email>[email protected]</ns1:Email>
<ns1:Address>
<ns1:Line1>Main Tower</ns1:Line1>
<ns1:Line2>Neue Mainzer Strasse</ns1:Line2>
<ns1:City>FFT</ns1:City>
<ns1:State/>
<ns1:ZipCode>99999</ns1:ZipCode>
<ns1:Country>Germany</ns1:Country>
</ns1:Address>
</ns1:LeadAnalyst>
<ns1:RatingApprover>
<ns1:FirstName>Nick</ns1:FirstName>
<ns1:MiddleName/>
<ns1:LastName>Mate</ns1:LastName>
</ns1:RatingApprover>
</ns1:PcrRatingDetails>
<ns1:PcrOrganization core_org_id="345840">
<ns1:PcrLinkedTo value="ISSUE"/>
<ns1:AdditionalInfo>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:Issues>
<ns1:Issue id="705230">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:IssueDetail id="114766798">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
<ns1:Issue id="727193">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
<ns1:IssueDetail id="117994574">
<ns1:AdditionalInfo>
<ns1:Info type="R_DATE">Credit Release Date: 09-Apr-2010</ns1:Info>
<ns1:Info type="R_REVIEW_DATE">Credit Last Review Date: 12-Oct-2011</ns1:Info>
<ns1:Info type="AdditionalInfo_QuartelyReport_URL">
<br/>
<A href="http://www.mysite.com/rts/articles/en/us/?articleType=HTML&assetID=1245321070686" target="_blank">MGH</A>
</ns1:Info>
</ns1:AdditionalInfo>
</ns1:IssueDetail>
</ns1:Issue>
</ns1:Issues>
</ns1:PcrOrganization>
</ns1:PcrDocument>')
SQL> set long 10000
SQL>
SQL> select x1.analyst
2 , x1.chair
3 , x1.core_org_id
4 , x2.*
5 from tmp_xml t
6 , xmltable(
7 xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
8 , '/PcrDocument'
9 passing t.object_value
10 columns analyst xmltype path 'PcrRatingDetails/LeadAnalyst'
11 , chair xmltype path 'PcrRatingDetails/RatingApprover'
12 , core_org_id number path 'PcrOrganization/@core_org_id'
13 , issues xmltype path 'PcrOrganization/Issues/Issue'
14 ) x1
15 , xmltable(
16 xmlnamespaces(default 'http://integration.mysite.com/ServiceSchema/v3')
17 , '/Issue'
18 passing x1.issues
19 columns issue number path '@id'
20 , rating_date varchar2(40) path 'AdditionalInfo/Info[@type="R_DATE"]'
21 , rating_review_date varchar2(40) path 'AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
22 , issue_detail number path 'IssueDetail/@id'
23 , id_rating_date varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_DATE"]'
24 , id_rating_review_date varchar2(40) path 'IssueDetail/AdditionalInfo/Info[@type="R_REVIEW_DATE"]'
25 ) x2
26 where x2.issue = 705230
27 ;
ANALYST CHAIR CORE_ORG_ID ISSUE RATING_DATE RATING_REVIEW_DATE ISSUE_DETAIL ID_RATING_DATE ID_RATING_REVIEW_DATE
<LeadAnalyst xmlns="http://integration.mysite.com/ServiceSchema/v3"> <RatingApprover xmlns="http://integration.mysite.com/ServiceSchema/v3"> 345840 705230 Credit Release Date: 09-Apr-2010 Credit Last Review Date: 12-Oct-2011 114766798 Credit Release Date: 09-Apr-2010 Credit Last Review Date: 12-Oct-2011
<FirstName>xxxxx</FirstName> <FirstName>Nick</FirstName>
<MiddleName/> <MiddleName/>
<LastName>xxxxxx</LastName> <LastName>Mate</LastName>
<Title>Director</Title> </RatingApprover>
<Label>Primary Analyst</Label>
<Telephone>xxxxxxxxxxxx</Telephone>
<Email>[email protected]</Email>
<Address>
<Line1>Main Tower</Line1>
<Line2>Neue Mainzer Strasse</Line2>
<City>FFT</City>
<State/>
<ZipCode>99999</ZipCode>
<Country>Germany</Country>
</Address>
</LeadAnalyst> -
How to derive DTD from XML CLOB?
I have a CLOB containing an XML document which I would like to derive the DTD for, what API can I use to do this? sample code would be appreciated.
FYI, the CLOB is populated from HTTP request against a remote system, therefore I don't have the SQL to execute locally - that would be too easy!
Many ThanksDo you mean you like to generate DTD from the CLOB XML document? Currently, XDKs don't support this.
-
How to read from xml documents using either sax or dom
dear all
i have an xml document and i want to create a procedure to read the data from it .
is it possible or not? thanks in advanceWhere is the xml document located?
load it into an XMLTYPE and apply xpath as required.
SQL> declare
2 xml xmltype ;
3 begin
4 xml := xmltype('<node><value>this is text</value></node>') ;
5 dbms_output.put_line('value='||xml.extract('/node/value/text()').getStringVal()) ;
6 end ;
7 /
value=this is text
PL/SQL procedure successfully completed.
SQL> -
Extracting Values from XML-Document in pl/sql
Hello!
I need to extract the content of the following extract:
<ns1:OXERPGetArticlesResponse xmlns:ns1="OXERPService">
<ns1:OXERPGetArticlesResult>
<ns1:OXERPType>
<ns1:aResult>
<ns1:ArrayOfString>
<ns1:string>OXID</ns1:string>
<ns1:string>531f91d4ab8bfb24c4d04e473d246d0b</ns1:string>
</ns1:ArrayOfString>
<ns1:ArrayOfString>
<ns1:string>OXARTNUM</ns1:string>
<ns1:string>0601-85-069</ns1:string>
</ns1:ArrayOfString>
<ns1:ArrayOfString>
<ns1:string>OXPRICE</ns1:string>
<ns1:string>100.5</ns1:string>
</ns1:ArrayOfString>
</ns1:aResult>
<ns1:blResult>true</ns1:blResult>
<ns1:sMessage/>
</ns1:OXERPType>
<ns1:OXERPType>
<ns1:aResult>
<ns1:ArrayOfString>
<ns1:string>OXID</ns1:string>
<ns1:string>531a8af7d9a9a5bb53b65a2b9a5356e5</ns1:string>
</ns1:ArrayOfString>
<ns1:ArrayOfString>
<ns1:string>OXARTNUM</ns1:string>
<ns1:string>0601-85-069-1</ns1:string>
</ns1:ArrayOfString>
<ns1:ArrayOfString>
<ns1:string>OXPRICE</ns1:string>
<ns1:string>89.9</ns1:string>
</ns1:ArrayOfString>
</ns1:aResult>
<ns1:blResult>true</ns1:blResult>
<ns1:sMessage/>
</ns1:OXERPType>
</ns1:OXERPGetArticlesResult>
</ns1:OXERPGetArticlesResponse>
The output should be:
OXID OXARTNUM OXPRICE
531f91d4ab8bfb24c4d04e473d246d0b 0601-85-069 100.5
531a8af7d9a9a5bb53b65a2b9a5356e5 0601-85-069-1 89.9
The count of rows and columns is variable.
I want to do this by using xmltype.extract but I found no way to create a loop over the content of the xml document.
Hopefully someone can help me!
Regards
HerbertOK, then you should be able to use something like :
SQL> var xmldoc clob;
SQL> begin
2 :xmldoc := '<ns1:OXERPGetArticlesResponse xmlns:ns1="OXERPService">
3 <ns1:OXERPGetArticlesResult>
4 <ns1:OXERPType>
5 <ns1:aResult>
6 <ns1:ArrayOfString>
7 <ns1:string>OXID</ns1:string>
8 <ns1:string>531f91d4ab8bfb24c4d04e473d246d0b</ns1:string>
9 </ns1:ArrayOfString>
10 <ns1:ArrayOfString>
11 <ns1:string>OXARTNUM</ns1:string>
12 <ns1:string>0601-85-069</ns1:string>
13 </ns1:ArrayOfString>
14 <ns1:ArrayOfString>
15 <ns1:string>OXPRICE</ns1:string>
16 <ns1:string>100.5</ns1:string>
17 </ns1:ArrayOfString>
18 </ns1:aResult>
19 <ns1:blResult>true</ns1:blResult>
20 <ns1:sMessage/>
21 </ns1:OXERPType>
22 <ns1:OXERPType>
23 <ns1:aResult>
24 <ns1:ArrayOfString>
25 <ns1:string>OXID</ns1:string>
26 <ns1:string>531a8af7d9a9a5bb53b65a2b9a5356e5</ns1:string>
27 </ns1:ArrayOfString>
28 <ns1:ArrayOfString>
29 <ns1:string>OXARTNUM</ns1:string>
30 <ns1:string>0601-85-069-1</ns1:string>
31 </ns1:ArrayOfString>
32 <ns1:ArrayOfString>
33 <ns1:string>OXPRICE</ns1:string>
34 <ns1:string>89.9</ns1:string>
35 </ns1:ArrayOfString>
36 </ns1:aResult>
37 <ns1:blResult>true</ns1:blResult>
38 <ns1:sMessage/>
39 </ns1:OXERPType>
40 </ns1:OXERPGetArticlesResult>
41 </ns1:OXERPGetArticlesResponse>';
42 end;
43 /
Procédure PL/SQL terminée avec succès.
SQL> SELECT x1.rec_id
2 , x2.col_name
3 , x2.col_value
4 FROM XMLTable(
5 XMLNamespaces('OXERPService' as "ns1"),
6 '/ns1:OXERPGetArticlesResponse/ns1:OXERPGetArticlesResult/ns1:OXERPType/ns1:aResult'
7 passing xmltype(:xmldoc)
8 columns rec_id for ordinality
9 , rec_xml xmltype path 'ns1:ArrayOfString'
10 ) x1,
11 XMLTable(
12 XMLNamespaces('OXERPService' as "ns1"),'/ns1:ArrayOfString'
13 passing x1.rec_xml
14 columns col_name varchar2(30) path 'ns1:string[1]'
15 , col_value varchar2(30) path 'ns1:string[2]'
16 ) x2
17 ;
REC_ID COL_NAME COL_VALUE
1 OXID 531f91d4ab8bfb24c4d04e473d246d
1 OXARTNUM 0601-85-069
1 OXPRICE 100.5
2 OXID 531a8af7d9a9a5bb53b65a2b9a5356
2 OXARTNUM 0601-85-069-1
2 OXPRICE 89.9
6 ligne(s) sélectionnée(s).You mentioned that the number of column(s) is not known in advance. That's gonna be a problem to present the data column-wise.
Version 11g has the PIVOT feature, but still you have to know how many columns there will be in the result set.
How are you going to use the data after extraction?
Maybe we could advise some other techniques more relevant for your requirement. -
I am wondering if it is possible to create a bean from an XML Schema that I have defined in JDeveloper. In BEA Weblogic xml beans are automatically generated for you when you create a schema.
What I am trying to do is create a web service that has an input of an xml document based off the schema I have created. But I don't know how to specify that as an input.
Thanks.Asking a similar question I was guided to TopLink 10.1.3 in this thread:
ADF Faces: Paginated Table backend (EA15)
I looked at XMLBeans but was surprised to find out that it does not generate JavaBean compliant javabeans which caused problems with JSF.
I have been using Castor, http://castor.exolab.org/, I don't know about it integrating with JDeveloper.
TopLink would be the most obvious choice if you need to integrate with JDeveloper. Keep in mind that it is TopLink's XML to JavaBean functionality is new but Oracle has been working with XML for a while. XMLBeans is also a young technology. Castor has been around for many years.
Good Luck,
Rachel -
Acrobat 8 can't locate scanner to create PDF from printed document using OCR
Hello,
I have an Epson scanner that is my default scanner on my OSX (10.6). Every program I have locates my scanner perfectly except Acrobat 8.0. Is there something I can do?
From the home dialogue box I click "Create PDF from Scanner". The next dialogue box opens and the Tab "Please Select a Device" doesn't let me scroll to find my scanner. So the scan button is greyed out and I can't do anything. Is there something I can do to make Acrobat clearly find my scanner?
-LuisCheck to see if they have a Native (not universal Binary) Twain Driver. Adobe refuses to allow universal Binary Twain Drivers in their programs.
Either use a Software package from the SANE/TWAIN Project. (look up on Google). Or use a Pakage Like SilverFast.
Before downloading the SANE/Twain Driver you have to look and see if the have a package for your current OS and for your particular Scanner. Stayaway from the SDK's unless your a Programer.
Then when you install all the pieces and set up open Acrobat and go to document Create PDF from Scanner choose SANE/Twain. Should be able to scan with it.
If you use SliverFast it is a standalone package Just scan and save as a PDF then open in Acrobat. or save as a Tiff or jpeg. Acrobat hasn't worked with a scanner since Macs went from OS9 to OSX. -
Could not retrieve attributes from XML document loaded in JDOM
Hi All,
I am having difficulty reading and parsing the following XML City.xml document using Saxon parser and XPath:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/ /EN" "http://www. w3.org/TR/ xhtml1/DTD/ xhtml1-transitio nal.dtd">
<html xmlns="http: //www.w3. org/1999/ xhtml">
<head>
<meta http-equiv=" Content-Type" content="text/ html; charset=UTF- 8" />
</head>
<body>
<div id="content">
<table class="sresults">
<tr>
<td>
<a href="http:/ /www.abc.com/areas" title=" Hollywood , CA "> hollywood </a>
</td>
<td>
<a href="http:/ /www.abc.com/areas" title=" San Jose , CA "> san jose </a>
</td>
<td>
<a href="http:/ /www.abc.com/areas" title=" San Francisco , CA "> san francisco </a>
</td>
<td>
<a href="http:/ /www.abc.com/areas" title=" San Diego , CA "> San diego </a>
</td>
</tr>
</body>
</html> Below is the code snippets that illustrates how I tried to retrieve the attribute title of <a>:
1. BufferedReader incomingbrXml = new BufferedReader(new FileReader("C:\City.xml"));
2. SAXBuilder saxBuilder = new SAXBuilder(false);
3. Document jdomXmlDocument = saxBuilder.build(incomingbrXml);4. String city_content = null;
5. XPath cityXPath = XPath.newInstance("/ns:html/ns:body/ns:div[@id='content']/ns:table[@class='sresults']/ns:tr/ns:td/ns:a/@title");
6. java.util.List cityList = cityXPath.selectNodes(jdomXmlDocument);
7. Iterator city_iterator = cityList.iterator();
8. while (city_iterator.hasNext()) {
9. city_content = ((org.jdom.Attribute)city_iterator.next()).getValue();
10. if (city_content.length() != 0) {
11. System.out.println("Area Url:" + area_content.toString()); }
12. } I would like to get the following output:
Hollywood , CA
San Jose , CA
San Francisco , CA
San Diego , CA
Instead, the jdomXmlDocument is made up of only the first few lines of City.xml and nothing on the body when debugging in Netbeans and nothing in cityList. I am running this program online so there would not be an issue with entity resolver that took place on line 2.
I am running JDK 1.6.0_17, Netbeans 6.7, JDOM 1.1, Saxon9.1 on Windows XP platform.
Any assistance would be appreciated.
Thanks in advance,
Jack.Hi,
Correction to line 11 - System.out.println("City title:" + city_content.toString()); instead.
Thanks,
Jack -
Hello all you XML gurus
I have written and ABAP as a client to connect to external web services which return an XML response and I now need to write and XSLT in order to transfer the data into my ABAP structure. Is there an easy way to write and XSLT transformation program using the XML as a base?
Take a look at the XML document returned from the webservice
<?xml version="1.0" encoding="utf-8"?>
<SchedRemote xmlns="http://scheduall.com/webservices/">
<Response>
<ClientDetails ERRCODE="0" ERRMSG="Ok">
<Field CL_ID="1127823" />
<Field PID="0" />
<Field NAME="Anthonys test client" />
<Field ADDRESS="" />
<Field CITY="" />
<Field STATE="" />
<Field ZIP="" />
<Field COUNTRY="" />
<Field PH1="0836078881" />
<Field PH2="" />
<Field FAX="0114674054" />
<Field NTS="" />
<Field SNTS="" />
<Field TAX1="" />
<Field TAX2="" />
<Field RATE_ID="0" />
<Field TAXCODE="0" />
<Field TERMS_ID="0" />
<Field STAT="0" />
<Field EXEC_ID="0" />
<Field SHORTNAME="" />
<Field CLIENTTYPE="0" />
<Field EXTID="" />
<Field T_SINCE="1/1/1970 12:00:00 AM" />
<Field BILLPARENT="0" />
<Field INHOUSE="0" />
<Field CRLIMIT="0" />
<Field POREQUIRED="0" />
<Field DISCOUNT="0" />
<Field LAST_MOD="4/16/2007 2:44:54 PM" />
<Field BADDRESS="" />
<Field BCITY="" />
<Field BSTATE="" />
<Field BZIP="" />
<Field BCOUNTRY="" />
<Field GMT_OFFSET="0" />
<Field EMAILADDR="" />
<Field LATECHARGE="0" />
<Field GROUP_1="0" />
<Field GROUP_2="0" />
<Field GROUP_3="0" />
<Field GROUP_4="0" />
<Field GROUP_5="0" />
<Field GROUP_6="0" />
<Field GROUP_7="0" />
<Field GROUP_8="0" />
<Field GROUP_9="0" />
<Field GROUP_10="0" />
<Field GROUP_11="0" />
<Field GROUP_12="0" />
<Field BILLATT="" />
<Field ALTEMAILAD="" />
<Field EXEC_ID2="0" />
<Field NOSENDSTMT="0" />
<Field SHIP_INST="" />
<Field PROD_ID="0" />
<Field CREATEDBY="ANDRE" />
<Field DATECREAT="4/16/2007 2:44:54 PM" />
<Field MOD_BY="ANDRE" />
<Field SHIP_VIA="" />
<Field SHIP_ACC="" />
<Field MB_NOBILL="0" />
<Field OT_EXEMPT="0" />
<Field USE_NIGHT="0" />
<Field CL_COLOR="0" />
<Field ASSOCFILE1="" />
<Field AUTOSELPRJ="0" />
<Field SALUTATION="" />
<Field CURR_ID="0" />
<Field LDR_PREFIX="" />
<Field TAX3="" />
<Field F_PRIMARY="0" />
<Field URL_SUPID="0" />
<Field TIMEZONE="0" />
<Field LOCSRCE_ID="0" />
<Field LOCDEST_ID="0" />
<Field DSTC_ID="0" />
<Field UTC_OFFSET="0" />
<Field AKA_FOR="0" />
<Field CRDLIMCHK="0" />
<Field TRAFF_STAT="0" />
<Field INS_EXPIR="1/1/1970 12:00:00 AM" />
<Field DEFSHADRID="0" />
<Field CXL_ID="0" />
<Field LIB_NOTES="" />
<Field USEMARKUP="0" />
<Field MARKUPPCT="0" />
<Field LNAME="" />
<Field FNAME="" />
<Field PLANTID="" />
<Field PRCHGRPID="" />
<Field B_NOBILL="0" />
<Field BARCODE1="" />
<Field BARCODE2="" />
<Field EXTID2="" />
<Field PENINVONLY="0" />
<Field CONTR_REQD="0" />
<Field NO_INVEXP="0" />
<CL_USER>
<Field CL_ID="1127823" />
<Field USER1="User field 1" />
<Field USER2="" />
<Field USER3="" />
<Field USER4="" />
<Field USER5="" />
<Field USER6="" />
<Field USER7="" />
<Field USER8="" />
<Field USER9="" />
<Field USER10="" />
<Field USER11="" />
<Field USER12="" />
<Field USER13="" />
<Field USER14="" />
<Field USER15="" />
<Field USER16="" />
<Field USER17="" />
<Field USER18="" />
<Field USER19="" />
<Field USER20="" />
<Field USER21="" />
<Field USER22="" />
<Field USER23="" />
<Field USER24="" />
<Field USER25="" />
<Field USER26="" />
<Field USER27="" />
<Field USERFLAG1="0" />
<Field USERFLAG2="0" />
<Field USERFLAG3="0" />
<Field USERFLAG4="0" />
<Field USERFLAG5="0" />
<Field USERFLAG6="0" />
<Field USERDATE1="1/1/1900 12:00:00 AM" />
<Field USERDATE2="1/1/1900 12:00:00 AM" />
</CL_USER>
</ClientDetails>
</Response>
</SchedRemote>
I have the following structure in my ABAP program which I would like a way of developing the XSLT in order to populate the results of each field into my program
data: begin of gs_clientdetails.
include structure zclient. " Contains all the CLIENT fields from Scheduall
include structure zcluser." Contains all the CL_USER fields from Scheduall
data: end of gs_clientdetails.
Any suggestions??Hi,
I am not a XSLT expert but Tobias wrote some nice blogs about it. Read them here:
/people/tobias.trapp/blog
You might want to start with this one:
/people/tobias.trapp/blog/2005/05/04/xml-processing-in-abap-part-1
cheers
Thomas -
Extract Created-Property from Office Documents
Hello,
i want to show the created-property of Office Documents in the search result list.
KM only extracts Title, modified, modifiedby.
So i followed the document "How to extract DC metadata from office documents for indexing and searching.pdf". But here only the following metadata are extracted:
title, personalname, description, subject, keyword.
How can i extract "created"?
thanks in advance!
Kind regards
SvenHi Sven,
I'm confused. The Properties "title","modified" and "modified" by you see in the KM-Explorer are normally the KM-properties (who uploaded the file and when), not internal MSOffice information.
To extend the list of properties displayed,
go to SyAdm->SysConf->KM->CM->UI->Settings->LayoutSet look for your LayoutSet (probably its AdminExplorer). Select the CollectionListRenderer and edit the String in "Displayed Properties:". Add ",created" at the end for example.
Is this what you need?
When it comes to read MSOffice metadata from the binary, I have no idea, sorry.
Jan
Maybe you are looking for
-
Company codes 1003/1003 do not appear in proposal 03.05.2007 A3 ; correct
Hi , Can you help you gurus why this message is coming while running F110 tcode. Your response is apprecited , Thanks Dipak
-
I downloaded a software update on my iPhone. Now it's asking me to connect to iTunes, but I don't have my computer with iTunes to connect to and won't be able to for a few days. What can I do to use my phone now?
-
Linking a custom object to an activity and importing records
I'm trying to create a link between an activity record and a custom object record. In essence, we will have 1 activity record with multiple associated custom object records linked to it. How do I import these multiple records to a specific activity r
-
Hello, I currently try to deploy Endeca ITL HOST on Windows Server 2012 RTM. I get an error when doing a Baseline_update action: "Forge.run()" and there are just an empty log to help... Windows Server 2008 R2 is working fine for me. Does anybody know
-
APPCC crashes on queue export to AME with AE comp links
I am experiencing crashes every time I try to export sequences to the AME queue that contain after effects composition links. It does not seem to make any difference if the sequences are rendered or not. i7 GTX770 16gb RAM 1TB/500G SSDs APPCC 2014.2