Martin Owens > Data-Validate-XSD-1.05 > Data::Validate::XSD::ParseXML

Download:
Data-Validate-XSD-1.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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

syntax highlighting: