Adding Line Number information to Element
This seems like a common enough question that I would have expected it to be in a FAQ. My question is how I would enhance Element to include line number information in a JAXP compliant way.
I have seen the DOMAddLines sample that ships with XercesJ. Is there a way to do this with the interfaces as they are defined by JAXP 1.4?
I'm looking for a JAXP-compliant way first, and then if that is not possible, just anyway that doesn't place a hard-coded (compile time) dependency on a specific XML Parser implementation. If I could not find a specific Parser implementation, I could gracefully degrade and build the DOM with the JAXP recommended one.