in reply to converting a xml page into a hash table

There are *lots* of XML modules available... if you're new to XML and your data is simple enough, I'd recommend XML::Simple, or try doing a Super Search on XML.

-Blake

  • Comment on Re: converting a xml page into a hash table

Replies are listed 'Best First'.
I use XML::Simple
by Rhose (Priest) on Sep 11, 2001 at 21:41 UTC
    I normally use XML::Simple to convert an XML file to a hash array. The following code will store the contents of in.xml in a hash array.

    #-- Sample code use strict; use XML::Simple; my $mXML; $mXML = XMLin('./in.xml',forcearray => 1);

    You might also want to use the Data::Dumper module to view the hash array.

    I hope this helps.