PHP Classes

XMLns2array: Convert a XML document into an 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: 370 All time: 6,813 This week: 660Up
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: 49
All time rank: 208914 in South Africa South Africa
Week rank: 206 Up1 in South Africa South Africa Up

  Files folder image Files (3)  
File Role Description
Plain text file XMLns2array.inc.php 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

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:370
This week:0
All time:6,813
This week:660Up