On Tue, 2002-06-04 at 13:38, James Strachan wrote: > Right now no. Someone was looking at implementing something like this; maybe > using the UserDataDocumentFactory to create UserDataElement instances which > could have some location information associated with each element. By > deriving from SAXReader it should be possible to do this.
do you happen to remember who or have a link to or search term for the earlier discussion? it would seem using the UserData stuff wouldn't fully address the situation since one may well want to know location information for text nodes and maybe even comments for the purpose of spell checking and the like. the UserData stuff seems to be limited to attributes and elements? might it instead be appropriate to add an api to Node for getting that information, provide a default -1 implementation, and to provide a method for SAXReader (and SAXContentHandler?) for turning it on if desired? i understand that most dom4j users don't care about position information, but for those that do, this would be _much_ easier than having to deal with sax input manually. and isn't that the point of dom4j anyway, to provide a sane, useful api for working with xml in java? :) is anyone else interested and able to work on this in the nearish future? finally, just to check - does anyone know if jdom supports this functionality? - donald _______________________________________________________________ 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-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user