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


Data-Validate-XSD documentation  | view source Contained in the Data-Validate-XSD distribution.

Index


NAME

Top

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

DESCRIPTION

Top

  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

Top

$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

Top

SEE ALSO

Top

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


Data-Validate-XSD documentation  | view source Contained in the Data-Validate-XSD distribution.