Stanimir Stamenkov
Usenet Archive
- Joined
- Dec 2, 2002
- Messages
- 431
- Reaction score
- 0
Is an XML document using undeclared general entity references not well-formed? For example:
<test>
foo
&bar;
</test>
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.
I'm experimenting with Xerces2-J v2.9.1 and the SAX interfaces, and the first example gives me a fatal error, while the second one parses o.k. reporting the &bar; reference as skipped entity.
<test>
foo
&bar;
</test>
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.
I'm experimenting with Xerces2-J v2.9.1 and the SAX interfaces, and the first example gives me a fatal error, while the second one parses o.k. reporting the &bar; reference as skipped entity.