The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Validate::XSD::ParseXML - Parse an XML file into a data structure for validation

DESCRIPTION

  Please install XML::SAX to use this module.

  Used internally by Data::Validate::XSD to load xml files for both xsd definitions
  and xml data. For the xml data we use a simple conversion metric which treats each
  tag level as an hash reference and multiple tags witht he same name as an array reference.

  For the xsd defininitions we use the same method as the data to aquire the data but then
  It's converted into a simpler format and any features which arn't available will produce
  warnings.

$parser->new( $xml_string )

  Create a new parser object to parse xml files.

$parser->data( )

  Return the parsed data structure.

$parser->definition( )

  Convert the data into a definition, assume it's in xsd format.

$parser->new( )

  Create a new parser object.

SAX PARSING

$parser->start_element( $node )

  Start a new xml element

$parser->end_element( $element )

  Ends an xml element

$parser->characters()

  Handle part of a cdata by concatination

COPYRIGHT

 Copyright, Martin Owens 2007-2008, Affero General Public License (AGPL)

 http://www.fsf.org/licensing/licenses/agpl-3.0.html

SEE ALSO

Data::Validate::XSD,XML::SAX