Krang::XML - XML utility class
# get a new XML::Writer object, setup to write into $xml
$writer = pkg('XML')->writer(string => \$xml);
# parse XML using XML::Simple
$data = pkg('XML')->simple(xml => $xml, forcearray => 1);
This module provides methods to assist in handling XML data in Krang.
Their primary purpose is to make writing the serialize_xml() and
deserialize_xml() methods required by Krang::DataSet easier.
See Krang::XML::Validator for XML Schema validation.
$writer = Krang::XML->writer(string => \$xml)$writer = Krang::XML->writer(fh => $fh)$data = Krang::XML->simple(xml => $xml)keyattr is [] instead of the absurd default.