XML external Entity question
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mjj_4402
Posted On:   Friday, September 13, 2002 01:42 PM

I have an external entity defined in my DTD, which when does not exist on disk gives me a parsing error. DTD <?xml version="1.0"?> <!ELEMENT myXML (mySection+)> <!ELEMENT mySection(myParam+)> <!ATTLIST mySection name CDATA #REQUIRED> <!ELEMENT myParam(#PCDATA)> <!ATTLIST myParam name CDATA #REQUIRED> <!ENTITY additionalXMLFile SYSTEM "newFile.xml"> XML &additionalXMLFile; paramValue Is there way to write the DTD or XML file to avoid getting the error. I don't want to do it thro. code. thanks    More>>

I have an external entity defined in my DTD, which when does not exist on disk gives me a parsing error.

DTD

<?xml version="1.0"?>
<!ELEMENT myXML (mySection+)>
<!ELEMENT mySection(myParam+)>
<!ATTLIST mySection name CDATA #REQUIRED>
<!ELEMENT myParam(#PCDATA)>
<!ATTLIST myParam name CDATA #REQUIRED>
<!ENTITY additionalXMLFile SYSTEM "newFile.xml">

XML

&additionalXMLFile;


paramValue



Is there way to write the DTD or XML file to avoid getting the error. I don't want to do it thro. code.

thanks

   <<Less

Re: XML external Entity question

Posted By:   Roseanne_Zhang  
Posted On:   Friday, September 13, 2002 03:38 PM

No, you must have all entity references resolved, otherwise, the parser will not let you go.
About | Sitemap | Contact