[dom4j-user] Does node exist

2004-12-16 Thread David Thielen
Hi;   Is there a call that returns if a node exists (based on a xpath query)?   The best I have some up with is: node.selectNodes(xpath).size() > 0   which I am assuming is not very efficient.   Is there a better way   thanks - dave  

[dom4j-user] Does node exist

2004-12-16 Thread David Thielen
  Hi;   Is there a call that returns if a node exists (based on a xpath query)?   The best I have some up with is: node.selectNodes(xpath).size() > 0   which I am assuming is not very efficient.   Is there a better way   thanks - dave