[jdom-interest] Validating a JDOMSource with line numbers?

Laurent Bihanic laurent.bihanic at atosorigin.com
Fri Apr 3 16:39:05 PDT 2009


A JDOM Document does not retain the system Id nor the line numbers of the 
original document (same for the encoding).
If you want this information, you should use a StreamSource.



ondra.cifka a écrit :
> Hello,
> I validate a JDOMSource using a schema-based Validator and display
> validation errors using an ErrorHandler. But the getSystemId() of the
> SAXParseException returns null and getLineNumber() returns -1. How can I get
> systemId and lineNumber for the errors?
> Thanks
> Ondra

More information about the jdom-interest mailing list