title: Perl XML::Parser - howto access a simple parsed tree?
body: <p>I want to parse a simple string using XML::Parser. This works fine. But I do not know how to access the result.</p>
  
  <pre><code>#!/usr/bin/perl
  
  use Data::Dumper;
  use XML::Parser;
  
  my $parser = XML::Parser-&gt;new( Style =&gt; 'Tree' );
  my $tree   = $parser-&gt;parse( '&lt;xml type="test" Id="ca19cfd5" result="1 test 2 test 3" elapsed="9" Size="12345" /&gt;' );
  
  print Dumper( $tree );
  </code></pre>
  
  <p>shows me</p>
  
  <pre><code>$VAR1 = [
  'xml',
  [
  {
  'Size' =&gt; '12345',
  'Id' =&gt; 'ca19cfd5',
  'type' =&gt; 'test',
  'elapsed' =&gt; '9',
  'result' =&gt; '1 test 2 test 3'
   }
   ]
   ];
  </code></pre>
  
  <p>So it perfectly could parse my string. But how do I access these fields? Something like "my $result = $tree..."</p>
  
  <p>The given xml string will always have the same syntax like shown above. Only the content differs.</p>
  
  <p>Tnx in advance,
  Enkidu</p>