Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: XML::Twig prev_sibling

by Anonymous Monk
on Oct 20, 2011 at 15:07 UTC ( #932696=note: print w/ replies, xml ) Need Help??


in reply to XML::Twig prev_sibling

Observe :)

$ perl -MXML::Twig -e " print XML::Twig->new( keep_spaces => shift)-> +parse( q{<header>Now <la>hist.</la> and <la>rare</la></header>} )->_d +ump " document |-header | |-PCDATA: 'Now ' | |-la | | |-PCDATA: 'hist.' | |-PCDATA: ' and ' | |-la | | |-PCDATA: 'rare'

rare previous sibling is and

and previous sibling is hist

hist previous sibling is now

XML::Twig/http://search.cpan.org/dist/XML-Twig/MANIFEST, http://web.archive.org/web/20070819113402/http://www.xmltwig.com/tutorial/perl_xml/


Comment on Re: XML::Twig prev_sibling
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2015-07-31 14:33 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 (278 votes), past polls