Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Line Number of a DOM Element

843834Sep 30 2008 — edited Oct 2 2008
Hi There,

I'm trying to find the originating xml file line number of a DOM element (for purposes of error reporting).

It seems that you can somehow use the DOMLocator class, however I can't seem to find any explanation of how to do this.

Please could anyone tell me how?

Thanks a lot,
Chris.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2008
Added on Sep 30 2008
7 comments
646 views