Hi Donald Thanks for the patch! This is great.
I recently got a patch from Nicholas as well, who tried to implement this feature too. I'll go through both of your patches and try combine them together and check them into CVS. I'll mail again when its done... James ----- Original Message ----- From: "Donald Ball" <[EMAIL PROTECTED]> To: "dom4j-dev" <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 9:26 PM Subject: [dom4j-dev] Re: [Fwd: Re: [dom4j-user] given a Node, can i get its original position information?] > being impatient and in need of this functionality, i went ahead and > implemented it in a limited fashion using UserDataElements as James > suggested. unfortunately, i still had to patch dom4j itself in order to > make it work. specifically, i had to make a few private fields in > SAXReader protected, and make DispatchHandler public. attached are my > PositionalSAXReader and PositionalSAXContentHandler classes, as well as > the patch for dom4j. > > i'd appreciate any comments from the dom4j team on the efficacy of this > patch and on the possibility of a more general solution that would > record position information for all nodes (that sax reports location > information for, anyway). i don't particularly like using the > UserDataDocumentFactory stuff for this because i don't think i should > have to choose between, say, IndexedDocumentFactory and being able to > store position information. but, still, it works. > > - donald > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev