Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( #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
Node Status?
node history
Node Type: note [id://936828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-09-20 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls