XML::MyXML 0.03 review
DownloadXML::MyXML is a simple XML module. SYNOPSIS use XML::MyXML qw(tidy_xml xml_to_object); my $xml = "< item >< name >Ta
|
|
XML::MyXML is a simple XML module.
SYNOPSIS
use XML::MyXML qw(tidy_xml xml_to_object);
my $xml = "< item >< name >Table< /name >< price >< usd >10.00< /usd >< eur >8.50< /eur >< /price >< /item >";
print tidy_xml($xml);
my $obj = xml_to_object($xml);
print "Price in Euros = " . $obj->path('price/eur')->value;
EXPORT
tidy_xml, object_to_xml, xml_to_object, simple_to_xml
FUNCTIONS
tidy_xml($rawxml)
Returns the XML string in a tidy format (with tabs & newlines)
xml_to_object($rawxml)
Creates an 'XML::MyXML::Object' object from the raw XML provided
Requirements:
Perl
XML::MyXML 0.03 search tags