Help for this page

Select Code to Download


  1. or download this
    <?xml version="1.0" encoding="Windows-1252"?>
    <App>
    ...
    <node name="3rd node" text="Text of 3rd node" />
    ...
    </App>
    
  2. or download this
    1st node: Text of 1st node
    2nd node: Text of 2nd node
    3rd node: Text of 3rd node
    ...
    
  3. or download this
    use XML::Simple;
    use Data::Dumper;
    ...
    foreach my $node (@{$data->{App}{node}}) {
        print $node->{name}.": ".$node->{text}."\n";
    }