XML::Structured 1.0 review
DownloadXML::Structured is a simple conversion API from XML to perl structures and back. SYNOPSIS use XML::Structured; $dtd
|
|
XML::Structured is a simple conversion API from XML to perl structures and back.
SYNOPSIS
use XML::Structured;
$dtd = [
'element' =>
'attribute1',
'attribute2',
[],
'element1',
[ 'element2' ],
[ 'element3' =>
...
],
[[ 'element4' =>
...
]],
];
$hashref = XMLin($dtd, $xmlstring);
$hashref = XMLinfile($dtd, $filename_or_glob);
$xmlstring = XMLout($dtd, $hashref);
The XML::Structured module provides a way to convert xml data into a predefined perl data structure and back to xml. Unlike with modules like XML::Simple it is an error if the xml data does not match the provided skeleton (the "dtd"). Another advantage is that the order of the attributes and elements is taken from the dtd when converting back to xml.
Requirements:
Perl
XML::Structured 1.0 search tags