Bugs item #526200, was opened at 2002-03-05 16:29 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=526200&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: text() not working property Initial Comment: The XPath text() fuction doesn't seem to work properly with the Node.valueOf() method call when there are sibling elements. With the following XML as an example <message> <keyword text="should"/> <keyword text="work"/> This should work </message> If I use the following call on the representing node, nothing will be returned. node.valueOf("message/text()"); However, if I switch the order of the text to the following it will return the text. <message> This should work <keyword text="should"/> <keyword text="work"/> </message> Work around: Call node.getText() - this is fine, but the real XML that I'm using has this element buried very deep. I'd prefer not to fetch the node first. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=526200&group_id=16035 _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev