Jim Cobban
Usenet Archive
- Joined
- Sep 4, 2002
- Messages
- 45
- Reaction score
- 0
I am using Xerces to read an XML file and load it into a DOM so I can update it and subsequently serialize the updated DOM.
The problem I have is that as I traverse the DOM I would like to inform the user of exceptional conditions in the file. However I cannot find any way while doing a DOM traversal to determine the line number that a particular Node occurs on, except to count all of the new-line characters which occur in Text Nodes.
Am I missing something?
The problem I have is that as I traverse the DOM I would like to inform the user of exceptional conditions in the file. However I cannot find any way while doing a DOM traversal to determine the line number that a particular Node occurs on, except to count all of the new-line characters which occur in Text Nodes.
Am I missing something?