On Wednesday, 11/20/2002 at 02:08 PST, hari babu <[EMAIL PROTECTED]> wrote: > i have got a doubt regarding the Xpath expressions.
Minor usage correction: You have a question, not a doubt. (Common error for folks whose native language isn't English.) > String que2 = /descendant::Element; > NodeList nl = XPathAPI.selectNodeList(n,que2); > > Here i expect all the element Nodes under My Table The leading / means "search from the root of the document." Remove it to search only the descendents of your context node. > But the query "//Element" returns the correct nodes. That looks like a bug. Leading // should search all descendents of the root node. If you aren't running the most recent version of Xalan, you may want to upgrade to see if this has been fixed; if not, we should probably report it via Bugzilla so we remember to look at it more carefully. ______________________________________ Joe Kesselman / IBM Research
