Line Breaks in XML Parsing
Hello,
I am parsing an xml file using SAX parser and JAXP. While parsing, I would like to track the line numbers of the file according to the line breaks encountered while parsing. For example,
<a>
<b> hello </b>
<p> world </p>
</a>
Here, I would like to trace the line breaks and say, that the word "world" is in line number 3 after rendering. Could anyone please help me in getting the solution?
Thanks,
Shiv.