F
foolproofplan
I am currently having a problem with checks I am doing on a DOM tree
of objects that I have created from an xml file. If I run into an
error with something within my DOM tree, I want to be able to include
the location (line/column) of where this error occurs back within my
original xml file. The trouble is, the DOM parser does not send any
information back on where it is as it creates it's DOM tree. The code
I am working with appears to be using the xerces DOM parser. The only
two ideas I could come up with was either running a search back over
the xml afterwards for it or using some other type of DOM parser that
would include information about lines and columns. Any suggestions?
Thanks!
- Marc
of objects that I have created from an xml file. If I run into an
error with something within my DOM tree, I want to be able to include
the location (line/column) of where this error occurs back within my
original xml file. The trouble is, the DOM parser does not send any
information back on where it is as it creates it's DOM tree. The code
I am working with appears to be using the xerces DOM parser. The only
two ideas I could come up with was either running a search back over
the xml afterwards for it or using some other type of DOM parser that
would include information about lines and columns. Any suggestions?
Thanks!
- Marc