xmlArray

Description

Creates a new xmlArray object, which is an simple xml dom parser.

Syntax

void xmlArray (string $data[, bool $auto_trim[, int $level[, bool $is_clone]]])



Parameter $data

Expected type: String
Description: The XML data



Parameter $auto_trim

Expected type: Boolean
Description: Whether or not to trim the data. Default is false.



Parameter $level

Expected type: Integer
Description: Error reporting level (see PHP manual). Default is null, meaning it will use the value set in index.php



Parameter $is_clone

Expected type: Boolean
Description: Whether or not this is a clone of an existing file (I think). Defaults to false.


Notes

  • Usage: $xml = new xmlArray('data.xml');
  • Data should be the xml data or an array of, unless is_clone is true.
  • auto_trim can be used to automatically trim textual data.
  • error_level specifies whether notices should be generated for missing elements and attributes.
  • If is_clone is true, the xmlArray is cloned from another - used internally only.
  • Moved to Class-Package.php in 2.0
Advertisement: