PHP Classes

xmlReader: Parse an XML document and build a nested array

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,797 All time: 2,181 This week: 660Up
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

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,797
This week:0
All time:2,181
This week:660Up