NAME

Krang::XML - XML utility class


SYNOPSIS

  # 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);


DESCRIPTION

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.


INTERFACE