XML::Structured 1.0 review

Download
by rbytes.net on

XML::Structured is a simple conversion API from XML to perl structures and back. SYNOPSIS use XML::Structured; $dtd

License: Perl Artistic License
File size: 4K
Developer: Michael Schroeder
0 stars award from rbytes.net

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 keywords