PHP Classes

XML-2-Array: Parse a XML document and build an array structure

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,083 All time: 3,443 This week: 423Up
Version License PHP version Categories
xml-2-array 1.0Free for non-comm...5.0XML, PHP 5


This class can be used to parse a XML document and build an array structure.

It takes a given XML file and parses it.

The class builds a nested array that contains the structure of tags and data of the XML document.

Picture of Raj Kumar Trivedi
Name: Raj Kumar Trivedi <contact>
Classes: 11 packages by
Country: India India
Age: 41
All time rank: 1115 in India India
Week rank: 530 Down36 in India India Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example File
Accessible without login Plain text file demo.xml Data Demo Xml File
Plain text file Class xml2array

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,443
This week:423Up
User Comments (2)
Does not work for me and my big xml file
12 years ago (Denis Moskvin)
This is a good and useful class ! lool
13 years ago (Josť Filipe Lopes Santos)