[jdom-interest] Element versus Document with XPath
Mark at beforethecall.com
Tue Nov 8 18:50:17 PST 2005
I was wondering if any of you have ever experienced the same problems.
If I do an :
Element result = (Element) XPath.selectSingleNode(el, "some
I get result=null. However, if I do:
Document doc = new Document ((Element) el.clone(), new
Element result = (Element) XPath.selectSingleNode(doc, "some
I get the right answer for result.
Why is it that Xpath doesn't work on the element but does on the
Thanks - I am stumped and see this behaviour quite often.
More information about the jdom-interest