In article <21**************************@posting.google.com >,
Jim <ch********@comcast.net> wrote:
When using an XPath query on an XML document that contains namespaces,
is there a more efficient way to find a node set based on the local
name than
//*[local-name()='MYNAME']
Is there another syntax that avoids using a predicate?
No, but do you really want to do it? Doing something to all elements
with a certain local name regardless of their namespace seems like
a hack to me.
And I'd be surprised if the difference in efficiency is noticeable,
though //*:MYNAME (if it were allowed) would certainly be more readable.
-- Richard
--
Spam filter: to mail me from a .com/.net site, put my surname in the headers.
FreeBSD rules!