Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Well-formedness and undeclared general entity references >Thread Next - Re: Well-formedness and undeclared general entity references Re: Well-formedness and undeclared general entity referencesTo: NULL Date: 4/10/2009 2:27:00 PM In article <grnc77$r5e$1@n...>, Stanimir Stamenkov <s7an10@n...> wrote: >Is an XML document using undeclared general entity references not >well-formed? For example: > ><test> > foo > &bar; ></test> That document is not well-formed. >If yes, what's the difference given using a non-validating processor >and the given example: > ><!DOCTYPE test SYSTEM "empty.dtd"> ><test> > foo > &bar; ></test> > >Where "empty.dtd" is really an empty file. A non-validating processor isn't required to read empty.dtd, so it may not be able to tell that it doesn't contain any declarations. The idea is that an error that can only be detected by reading the external DTD is a validity error, rather than a well-formedness error. -- Richard -- Please remember to mention me / in tapes you leave behind. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
