external DTDs (again)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   David_Haupt
Posted On:   Tuesday, July 10, 2001 06:51 AM

Hello I am trying to parse and validate an xml-stream from a server. The stream contains no Jguru XML FAQ I would only have to set the SystemID correctly to the .dtd. When the dtd is read all i get is a fatalerror "The markup in the document preceding the root element must be well-formed". The error occurs at line 2, column 3. this is the start of my .dtd <?xml version="1.0" encoding="ISO-8859-1"?> <!ELEMENT stuff (status, data?)> <!ELEMENT status (#PCDATA)> Obviously I am missing something :) Please help (xerces 1.4.1)    More>>

Hello
I am trying to parse and validate an xml-stream from a server. The stream contains no
Jguru XML FAQ I would only have to set the SystemID correctly to the .dtd.
When the dtd is read all i get is a fatalerror "The markup in the document preceding the root element must be well-formed". The error occurs at line 2, column 3.
this is the start of my .dtd

			
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ELEMENT stuff (status, data?)>
<!ELEMENT status (#PCDATA)>

Obviously I am missing something :)
Please help
(xerces 1.4.1)    <<Less

Does it help you?

Posted By:   Naveed_Azhar  
Posted On:   Monday, July 16, 2001 05:06 AM

Hello there

Salam!!

Please use

xdoc.setDoctype("SYSTEM","file:///C:/naveed.dtd",null);


It works for me!!

Naveed Azhar

naveed@hotmail.com
About | Sitemap | Contact