|
In the
ErrorHandler class, it would be very handy to have some additional information
sent to the error, fatalError, and warning methods, such as a reference to the
element stack, the element name, and/or a byte offset in the stream, if that is
being maintained. Take for instance the following Exception I report from
my ErrorHandler:
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x19)
was found in the element content of the document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:969) at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:643) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1355) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861) It
would be really nice to know what element caused this problem, and further,
which occurrence of that element caused the problem. I actually am
maintaining my own element stack for handling purposes, and so it looks like I
will probably store a reference to this stack in my ErrorHandler class.
However, I would think this type of information would be wanted by everyone, and
hence, possibly a helpful change to the source.
BradO
|
- XML Schema Validation Keith Welch
- RE: XML Schema Validation Ragunath Marudhachalam
- Re: XML Schema Validation Keith Welch
- RE: XML Schema Validation Ragunath Marudhachalam
- RE: XML Schema Validation Ragunath Marudhachalam
- Re: XML Schema Validation Keith Welch
- RE: XML Schema Validation Brad O'Hearne
- RE: XML Schema Validation Leonardo Battagli
- RE: XML Schema Validation Ragunath Marudhachalam
- RE: XML Schema Validation Leonardo Battagli
- RE: XML Schema Validation Scott J. Geertgens
- RE: XML Schema Validation DPawson
- RE: XML Schema Validation Stefan Lecho
- RE: XML Schema Validation Inga Schuetz
- RE: XML Schema Validation Bjoern Martin
- RE: XML Schema Validation Michael Duffy
