I have the following code
DocumentBuilderFactoryImpl dbf = new
DocumentBuilderFactoryImpl(); //.newInstance();
dbf.setValidating(true);
DocumentBuilder db = dbf.newDocumentBuilder();
ErrorHandler dh = new ErrorHandler();
db.setErrorHandler(dh);
doc = db.parse(new InputSource(new
StringReader(xmlString)));
If the xml has tags not defined in the DTD it does not complain.
Can someone suggest where I am going wrong.
Thanks
Anish
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]