in reply to XML XPath Help

Apart from what Sinistral says, there is another problem. The first code calls the find() method with the string '//@authorid', the other, if it worked as intended, would call it with string '//authorid'. You are missing the @.

Replies are listed 'Best First'.
Re^2: XML XPath Help
by akhilakamb (Initiate) on Sep 14, 2007 at 03:06 UTC
    Hey thanks! It worked. Seems i have to use double quotes also while using a variable name.