Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-04 06:14 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 (57 votes), past polls