Skip to content

marsdk/simplexmlhelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

SimpleXMLHelper class for PHP

SimpleXMLHelper

A helper class for converting SimpleXMLElement to an array structure. This also traverses the namespace given and adds them to the array.

Usage

// Require the helper file. require_once("SimpleXMLHelper.class.php");

// Load the XML. $xml = simplexml_load_file('somefile.xml');

// Read the namespace from the XML file. $namespaces = $xml->getNamespaces(TRUE);

// Convert XML to array. $array_xml = SimpleXMLHelper::xmlarray($xml, $namespaces);

About

SimpleXMLHelper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published