Help for this page

Select Code to Download


  1. or download this
    use XML::Simple;
    my $xml = new XML::Simple;
    $answers = $xml->XMLin('answers.xml');
    $url = $answers->{answer}->[0]->{url}; 
    print "$url";
    
  2. or download this
    <?xml version="1.0" encoding="UTF-8"?>
    <file>
    ...
        <url>web 2</url>
      </answer>
    </file>
    
  3. or download this
    <?xml version="1.0" encoding="UTF-8"?>
    <file>
    ...
        <url>web 1</url>
      </answer>
    </file>