title: LIBXML - how do I get the name of the tag?
body: <p>I have the following:</p>
  
  <pre><code>my $string='&lt;entry&gt;&lt;name&gt;Bob&lt;/name&gt;&lt;zip&gt;90210&lt;/zip&gt;&lt;/entry&gt;';
  
  my $parser=XML::LibXML-&gt;new(); 
  use HTML::Entities;
  my $encodedXml=encode_entities($string,'&amp;\'');
  
  my $doc=$parser-&gt;parse_string($encodedXml);
  
  foreach my $text($doc-&gt;findnodes("//text()")){
  print $text-&gt;to_literal,"\n";
  }
  </code></pre>
  
  <p>This prints out 'Bob' and '90210';</p>
  
  <p>How do I get the actual node names...I need a way to get all the nodes within my xml tree....ie 'name' and 'zip'</p>