Login   Register  
PHP Classes
elePHPant
Icontem

XML: Parse XML documents into arrays and vice-versa

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-12-27 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,433 All time: 2,542 This week: 1,575Up
Version License PHP version Categories  
array2xml_xml2array 1.0GNU General Public Lice...5.1XML, PHP 5, Data types
Description Author  

This class can be used to parse XML documents and build an array with the document structure.

It can also generate XML documents from nested arrays that define the document tag structure.

The class can load XML documents from files or text strings. It turns the document tags into keys of a nested associative array. The resulting array is stored in a class variable.

It can also take an array with the document structure and generate a XML document. The document XML is returned as a string.

Picture of Ricardo Alexandre Sismeiro
Name: Ricardo Alexandre ... <contact>
Classes: 2 packages by
Country: Portugal Portugal
Age: 34
All time rank: 137417 in Portugal Portugal
Week rank: 1779 Down29 in Portugal Portugal Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.xml Output xml source
Accessible without login Plain text file example_array2xml.php Example example
Accessible without login Plain text file example_xml2array.php Example example
Plain text file xml.php Class class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,433All time:2,542
 This week:0This week:1,575Up