You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "John L. Utz III" <ut...@singingfish.com> on 2001/05/15 02:37:17 UTC

validating data with XMLSchema - no line number is returned on error

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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org