PHP Classes

File: readmeFirst.txt

Recommend this page to a friend!
  Classes of Michal Palma   XML 2 Array   readmeFirst.txt   Download  
File: readmeFirst.txt
Role: Documentation
Content type: text/plain
Description: description
Class: XML 2 Array
Parse an XML document into an array XPATH indexed
Author: By
Last change: Excuse of some things.
Date: 18 years ago
Size: 583 bytes
 

Contents

Class file image Download
/* * Class to read XML file * Class use SimpleXml - default PHP lib * @package Xml2Array * @date 2005-07-29 */ This is very primitive class to read XML files. It does not know to write XML data. In construction of object You must specify complete filename with address. Then You will use function __get() and in the parameter You will write XPATH of XML element from which You want content. Throws standard PHP5 Exceptions with codes: -1 for error of opening file, 1 for error of reading XPATH from file Thats all. Some cases of use are defined in ___case_of_use.php.