You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Bozhong Lin <bl...@macromedia.com> on 2001/08/16 20:03:17 UTC

validating XML against local subset of DTD

Hello,

I try to use validating parser to do XML validation against 
local subset of DTD, but it seems that XercesJ can't detect 
error in following trivial document:

<!DOCTYPE hello [
	<!ELEMENT hello (#PCDATA)>
	<!ATTLIST hello
	version CDATA #FIXED "1.0"
>
]>
<hello version="1.0" author="blin"/>

If I open above document in XML spy, it will show error.
Do you have any idea why? Thanks.

Bozhong



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org