Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
I have 500+ XML files to extract data from and am new to XML, so I was over the moon to find the excellent explanation of XML::Simple on CPAN. I've got the data into a hash ref and set to work on extracting the indevidual values only to find that the writers of the XML used '-' in the tags, resulting in PERL treating them as minus symbols. I think?
$xml_ref->{identifier}->{formal-parameter} #? formal 'minus' parameter.Does anyone know a way round this or do I need more then XML::Simple
Thanks are due also to http://www.w3schools.com/xml/xml_elements.asp for it's excellent intro to XML.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple - Limitations
by itub (Priest) on May 20, 2004 at 14:23 UTC | |
by Scarborough (Hermit) on May 20, 2004 at 14:54 UTC | |
|
Re: XML::Simple - Limitations
by mifflin (Curate) on May 20, 2004 at 14:26 UTC | |
|
Re: XML::Simple - Limitations
by mirod (Canon) on May 20, 2004 at 14:24 UTC |