I\'m trying to validade a XML against a W3C XML Schema.
The following code does the job and reports when error occurs. But I\'m unable to get line number of the error. I
Replace this line:
validator.validate(new DOMSource(document));
by
validator.validate(new StreamSource(new File("myxml.xml")));
will let the SAXParseException contain line number & column number