I am writing a special XML validator using Xerces-C ++. My current approach is loading a document into the DOM, after which checks are performed on it. I need a way to access the row / column number of a node in the DOM. I read the API docs and search queries, but I will come soon. Is it possible to somehow obtain such information about nodes?
The implementation of the XMLValidatorinterface looks like it will probably provide me with such information, but this would require a complete rewrite of the intended architecture of the verification. Honestly, the approach XMLValidatorseems ugly and monolithic. I have another and much simpler verification system (which is also easily parallelized), and everything works; all I need is information about the number of rows / columns of nodes. The Qt DOM implementation that I used before (and which I cannot use now) provides this information up front , so I can "why Xerces complicates the job."
Lucas source
share