Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (7)
As of 2014-10-02 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (45 votes), past polls