Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: XML dont include parent node

by derby (Abbot)
on Dec 10, 2013 at 17:39 UTC ( #1066480=note: print w/replies, xml ) Need Help??


in reply to XML dont include parent node

You could always use the start-with function:

my @nodes = $root->findnodes( '/Root/*/*[starts-with(name(), "child")] +' );

-derby

Replies are listed 'Best First'.
Re^2: XML dont include parent node
by smls (Friar) on Dec 11, 2013 at 01:07 UTC
    I think you're taking the OP's example XML snippet too literally... :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-12-10 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?