Full validation of DTDs 2004-01-09 - By Sander Bos
Hi there,
If I have a document like:
==<!DOCTYPE test SYSTEM "test.dtd"> <test/> == and a DTD like
==<!ELEMENT test EMPTY> <!ELEMENT illegal_decl (some, none, existing, element, names)> == is it possible to get errors from the DTD being incorrect (for instance 'some' is not defined in any way). I tried parsing the document with an XNI parser with parserConfig.setFeature("http://xml.org/sax/features/validation", true);
parserConfig.setFeature("http://apache.org/xml/features/validation/schem a-full-checking", true); but the full-checking does not seem to have an effect for my DTD, the illegal_decl is not noticed. Is what I see what I should see? Is there any way to have Xerces report errors for this DTD (e.g. with a preparser or something like that)?
Kind regards,
--Sander.
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|