PHP Classes

XML: Parse XML documents into arrays and vice-versa

Recommend this page to a friend!
  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 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,441 All time: 2,621 This week: 1,157Up
Version License PHP version Categories
array2xml_xml2array 1.0GNU General Publi...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: 36
All time rank: 143219 in Portugal Portugal
Week rank: 1549 Down25 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  
This week:0
All time:2,621
This week:1,157Up