Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: XML:: Twig - can you check for text following the element being handled?

by ambrus (Abbot)
on Nov 08, 2011 at 17:09 UTC ( [id://936828]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings; use 5.014;
    our $doc = q{<?xml version="1.0" encoding="iso-8859-2" ?>
    ...
        </verse>
    };
    
  2. or download this
    our %xmlopt = (
        keep_spaces => 1, comments => "drop", 
    ...
        $tw->parse($doc);
    }
    
  3. or download this
    =begin output
    
    ...
    
    =cut
    
  4. or download this
    if (1) {
        my $tw = XML::Twig->new(%xmlopt);
    ...
        }
    }
    
  5. or download this
    =begin output
    
    ...
    
    =cut
    
  6. or download this
    if (1) {
        my $line_handler = sub {
    ...
        $tw->parse($doc);
    }
    
  7. or download this
    =begin output
    
    ...
    
    =cut
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-18 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found