[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Nested entity declarations in DTDs
On Sun, Mar 13, 2022 at 9:10 PM <daniel@devasta.ie> wrote:
I've revisited above mentioned example. Now I've parsed the above cited XML document instance with expat (which I believe is an underlying XML parser for mozilla) command line (I've built a custom windows .exe from my C program that I've compiled and linked using expat library). The document parses fine, without errors. I'm not able to review visually (since there are too many entity cross references), all the entity definitions and references within above mentioned XML. Assuming that, all entity references are defined, I could say that, expat doesn't have a bug :). Am I right? Following are few other XML documents, that I've parsed with expat, and the parsing results are mentioned as well, <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE feed [ <!ENTITY a 'http://test1'> <!ENTITY e 'hello'> <!ENTITY b '&e;'> ]> <feed xmlns="&a;">&b;</feed> The above XML document instance, parses without errors. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE feed [ <!ENTITY a 'http://test1'> <!ENTITY e1 'hello'> <!ENTITY b '&e;'> ]> <feed xmlns="&a;">&b;</feed> The above example, results in following parsing error (because, entity definition for 'e' is missing), Parse error at line 7: undefined entity Regards, Mukul Gandhi
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|