----- Original Message ----- From: "Brain, Jim" <[EMAIL PROTECTED]> > [snip] > > On the XPath, I thought that: //server was the same as server in XPath, ie. > The // are not needed if they are at the beginning of a query.
Yes, sort of. Putting on my pedant hat for a second... Searching for "foo" would find all immediate children of the current node, searching for "//foo" would recursively search the entire XML document, whatever the node was that the expression was evaluated, since any expression that starts with a "/" will start evaluation from the nodes' document.. If you want to just recursively recurse the children of the current node you can do either List children = node.selectNodes( ".//foo" ); List children = node.selectNodes( "descendant::foo" ); James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
