I am trying to parse a document with nodes that look something like this:
<doc>
<results>
<result xmlns="http://www.inktomi.com/">
<title>Senate Panel to Review Election Unit Sale</title>
</result>
</result>
</doc>
However the namespace and the nodename of the result could be different. If it were not so, this would work:
results..*::title //>Senate Panel to ...
but doing this doesnt:
var myvar = "title"
results..*::[myvar]
any clues?