xml_parse_into_struct

int int xml_parse_into_struct(resource parserID, string xmldata, 
array &values, array &indexes) 
parserID Reference to a valid parser
xmldata XML data to be parsed
&values Values of the xmldata
&indexes Array of pointers to values

Parses XML data into values and indexes. These arrays are passed by reference.

Returns:

TRUE on success; FALSE on error

Description:

Parses XML data into two parallel array structs: values and indexes. These arrays are passed by reference. The resulting arrays can be used to construct the format of the XML document. For examples of creating trees from these structs, go to www.php.net and look under user contributed notes for this function.

Version:

PHP 3 >= 3.0.8, PHP 4 >= 4.0b1

Example: ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.