greetings;

i am attempting to uses xerces-131 to validate data that conforms to an
xmlschema.

as alluded to here previously, it was pretty simple to create a validator.

however, i am not getting a line number returned to me when the validation
fails:

Fatal Error:  org.xml.sax.SAXParseException: The element type "given" must
be terminated by the matching end-tag "</given>".
Exception: Stopping after fatal error: The element type "given" must be
terminated by the matching end-tag "</given>".
org.xml.sax.SAXException: Stopping after fatal error: The element type
"given" must be terminated by the matching end-tag "</given>".
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1099)
        at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:635)
        at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:684)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1192)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:993)
        at
com.singingfish.cpp.apps.ValidWithSchema.<init>(ValidWithSchema.java:22)
        at
com.singingfish.cpp.apps.ValidWithSchema.main(ValidWithSchema.java:65)


where can i add this into the xerces parser?

tnx!

johnu


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to