Help for this page

Select Code to Download


  1. or download this
    <a>
        <b id='id1' type="1"/>
        <b id='id2' type="1.5"/>
    ...
        <c id='id4'/>
        <b id='id5' type="3"/>
    </a>
    
  2. or download this
    use warnings;
    use strict;
    use XML::XPath;
    ...
    foreach my $node ( $nodeset->get_nodelist ) {
        print XML::XPath::XMLParser::as_string( $node ) . "\n";
    }