If these errors are generated by your XML parser then a
custom ErrorHandler passed to SAXReader.setErrorHandler() should do the job. But
be sure that you create a validating SAXReader AND that the underlying SAX
parser will do whatever kind of validation you need. For example, if you were
validating against a W3C XML Schema, you'd have to have a Schema-validating
parser and ensure that Schema validation was enabled. Same thing if you were
using RELAX NG or some other schema language.
Justin
Hi folks,
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Naufal
Sent: Tuesday, October 31, 2006 5:24 AM
To: dom4j-user@lists.sourceforge.net
Subject: [dom4j-user] How can I show the error / missing fields?
I've just started to use Dom4J and I wanna know how can I show the error fields at may XML. Can I display them with a custom ErrorHandler with Dom4J or there isn't any possibility to do that? I just wanna show the name of the tags which contain errors, say, blank fields.
Thanks,
--
------------------------------------------------------------------------
Rafael Naufal
"The great pleasure in life is doing what people say you cannot do"
blog: http://rnaufal.livejournal.com
------------------------------------------------------------------------
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user