PHP Classes

xmlReader: Parse an XML document and build a nested array

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-06 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,770 All time: 2,090 This week: 1,146Up
Version License Categories  
xmldomitparser 1.0.0Free For Educatio...XML
Description Author  

This is a simple class that can parse an XML document and return a nested associative array with the document tag structure.

The returned array has as many dimensions as the nesting depth of the XML document tags.

The class uses domIT class as the base class to parse an XML file.

Picture of sushil bajimaya
Name: sushil bajimaya <contact>
Classes: 1 package by
Country: Nepal Nepal
Age: ???
All time rank: 15252 in Nepal Nepal
Week rank: 1531 Down2 in Nepal Nepal Equal

  Files folder image Files  
File Role Description
Accessible without login Plain text file tsubmenu2.xml Data a sample xml file
Plain text file xmlReader_class.php Class the main class file to parse an xml file
Accessible without login Plain text file xmltest.php Example tests the xmlReader class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,770All time:2,090
 This week:0This week:1,146Up