Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2005-07-31 (11 years ago) | 57% | Total: 10,397 | All time: 119 This week: 1,043 |
Version | License | Categories | ||||
xml2array 1.0.0 | GNU General Publi... | XML, PHP 5, Data types |
Description | Author | |||||||||||||
This is a simple class can parse a XML document file and build an associative array from its elements. |
|
/* * 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. |
Files |
File | Role | Description |
---|---|---|
readmeFirst.txt | Doc. | description |
test.xml | Data | Auxiliary test data |
Xml2Array.class.php | Class | Xml2Array class |
___case_of_use.php | Example | Cases of use |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
0% | 1 |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
CSV to SQL database converter | To read XML configuration | Required |