Hello, Our app uses xml files for configuration. The syntax is checked during loading and linenumbers are then provided.
After loading all xml file as dom4j documents, they are checked amongst themselves for references to eachother. If a reference error is found I would like to give an nice error message with line number like: conf1.xml:34: tag TAG1 references conf2.xml/TAG2 but does not exist in conf2.xml This means I have to remember the linenumber 34 (TAG1) to use later while doing the reference checks using the dom4j documents. This means I need to collect line number info during the SAX parsing and store it separate from the dom4j document in some datastructure. Can someone point me to a starting point on how to add callbacks to the SAX parser which dom4j uses? Or maybe there is an easier way? best regards, Peter
