Re: Validating a JDOMSource with line numbers?

Laurent Bihanic <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hi,

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.

Regards,

Laurent


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
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.