Hello,
 
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.
 
 
for example,
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 ?
 

Regards,
--
Kunal Chauhan
mail4ck@gmail.com
[+918655517141]
[+919904983614]