Hi people.
I've tried to produce two warnings (warn on undeclared element and warn on duplicate attdef) in a DTD.
But when I parse the XML file that refers this DTD with Xerces 1.4.4., I don't get the warning message.
Have I made a mistake or is there a bug in Xerces ?
Thanks in advance for your answer.
Jean-Guillaume.
Attached files :
- MailingListWarning.xml
- MailingListWarning.dtd (a DTD where an element is undeclared and an attribute is declared twice)
- MyErrorHandler.java (a class that extends DefaultHandler and that defines methods warning() and error()
- MyEventHandler.java (a class that extends MyErrorHandler and that defines methods from ContentHandler)
- XMLFileConsolePrinter (a class that creates a validating SAXParser with features
"http://apache.org/xml/features/validation/warn-on-duplicate-attdef" and
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef" at true
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef" at true
and that parses the XML File.)
MailingListWarning.xml
Description: Binary data
MailingListWarning.dtd
Description: Binary data
MyEventHandler.java
Description: Binary data
MyErrorHandler.java
Description: Binary data
XMLFileConsolePrinter.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
