eZPublishCommunityProject  2013.6
convertXML2JSON.php File Reference

Functions

 convert ($fileName)
 takes a file name of an xml document and returns an json representation More...
 
 dom_to_array ($root)
 converts a DOMElement to an array representation More...
 
 indent ($json)
 pretty prints a json string More...
 

Function Documentation

convert (   $fileName)

takes a file name of an xml document and returns an json representation

Parameters
string$fileName
dom_to_array (   $root)

converts a DOMElement to an array representation

Parameters
\DOMElement$root

Referenced by convert().

indent (   $json)

pretty prints a json string

Parameters
string$json