xml_parse_into_struct

xml_parse_into_struct -- Parse XML data into an array structure

Description

int xml_parse_into_struct ( resource parser, string data, array values [, array index])




When we run that code, the output will be:





Beispiel 1 . moldb.xml - small database of molecular information




And some code to parse the document and generate the appropriate objects:

Beispiel 2 . parsemoldb.php - parses moldb.xml into and array of molecular objects




After executing parsemoldb.php , the variable $db contains an array of AminoAcid objects, and the output of the script confirms that: