I am using saxon9he as an XML Processor.
Whenever I try to parse an Invalid XML file at that time, On console I am able to get line number and column number where an error exist within document.
But I want to catch that exception and want to print line number and column number where an error exist.
On console it gives following output
Error on line 3 column 7
SXXP0003: Error reported by XML parser: Element type "aba" must be followed by either
attribute specifications, ">" or "/>".
I want this line and column number to show proper error message.
How can I achieve this ?