Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: XML::Lib XML question

by Corion (Pope)
on Oct 22, 2009 at 08:27 UTC ( #802688=note: print w/ replies, xml ) Need Help??


in reply to XML::Lib XML question

As far as I understand XPath, /yyy will look for a root node of <yyy>, which you don't have. Either /xxx/yyy or //yyy should find the yyy node.

Update: This just shows what little I know of namespaces. I think ikegami's reply is correct and this one is wrong. With a root node of xxx, $root->findNodes should find /yyy in <xxx><yyy></xxx>, but the namespace prevents the match.


Comment on Re: XML::Lib XML question
Select or Download Code
Replies are listed 'Best First'.
Re^2: XML::Lib XML question
by weismat (Friar) on Oct 22, 2009 at 08:33 UTC
    The beauty of Sketchpath is that you click on the node and it suggests the query.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://802688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-07-28 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls