PHP Classes

XMLns2array: Convert a XML document into an 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  
2009-07-06 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 366 All time: 6,325 This week: 1,508Up
Version License PHP version Categories  
xmlns2array 1.0BSD License5.0XML, PHP 5, Data types
Description Author  

This class can be used to convert a XML document into an array.

It takes XML document structure as a SimpleXMLElement object and traverses it to build a nested array structure.

The class preserves the original document namespaces.

Picture of Mark Holtzhausen
Name: Mark Holtzhausen <contact>
Classes: 2 packages by
Country: South Africa South Africa
Age: 40
All time rank: 226416 in South Africa South Africa
Week rank: 1600 Up12 in South Africa South Africa Up

  Files folder image Files  
File Role Description
Plain text file Class XML (NS) 2 Array Static Class
Accessible without login Plain text file test.php Example Test File containing XML snippet to parse
Accessible without login Plain text file TestResults.txt Output Test File Containing the results from the test.php execution

 Version Control Unique User Downloads Download Rankings  
 0%Total:366All time:6,325
 This week:0This week:1,508Up