XML class

The following sections explain each method of the class.

loadXML


public static void loadXML ( string $xml)

Loads the passed XML in the XML class for further processing.

Parameter list
xml

The transferred content can be an XML, a path to a local XML file or a URL to an XML file.


toArray


public static array toArray ( )

Converts the loaded XML into an array and then returns it.


toObject


public static object toObject ( )

Converts the loaded XML into an object and returns it then.


getSimpleXML


public static SimpleXMLElement getSimpleXML ( )

Converts the loaded XML into a SimpleXMLElement and returns it then.