Help for this page

Select Code to Download


  1. or download this
    #!/bin/perl -w
    use strict;
    use XML::Parser;
    ...
      <elt id="elt3"><child_1/><child>child 2</child></elt>
      <elt id="elt4"><child_1/></elt>
    </doc>
    
  2. or download this
    #!/bin/perl -w
    use strict;
    use XML::Twig;
    ...
      <elt id="elt3"><child_1/><child>child 2</child></elt>
      <elt id="elt4"><child_1/></elt>
    </doc>
    
  3. or download this
    #!/bin/perl -n -w
    use strict;
    
    ...
      { print join "\n", @results;
        print "\n";
      }
    
  4. or download this
    #!/bin/perl -w
    use strict;
    
    ...
      <elt id="elt4"><child_1/></elt>
    </doc>