Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: XML dont include parent node

by derby (Abbot)
on Dec 10, 2013 at 17:39 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found