Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: XML::Twig how to find a parent's attribute

by poj (Priest)
on Jul 26, 2014 at 05:19 UTC ( #1095137=note: print w/ replies, xml ) Need Help??


in reply to Re^2: XML::Twig how to find a parent's attribute
in thread XML::Twig how to find a parent's attribute

sub li { my ($t,$elt) = @_; my $e = $elt->parent('[@conref != ""]'); # p removed if ( defined $e ){ print $e->tag." ".$elt->text."\n"; } }
poj


Comment on Re^3: XML::Twig how to find a parent's attribute
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (18)
As of 2014-10-24 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (132 votes), past polls