This object is usefull for XML manipulation

uses string usefull tools
package OWR
used_by \OWR\REST\Controller
used_by \OWR\REST\Request

 Methods

Serialize an array to xml

serialize(array $arr, string $rootEl, int $statusCode, \DOMDocument $dom, \DOMElement $domel) : string
Static
static
access public

Parameters

$arr

array

the array to convert

$rootEl

string

name of the root element

$statusCode

int

the status code of the response, optional

$dom

\OWR\DOMDocument

\DOMDocument node, recursion

$domel

\OWR\DOMElement

\DOMElement node, recursion

Returns

stringthe xml representation of $arr

Unserialize xml string to associative array

unserialize(array $xml, \XMLReader $reader, array $arr, string $localName) : array
Static
static
access public

Parameters

$xml

array

the xml string to convert

$reader

\OWR\XMLReader

\XMLReader the xmlreader instance, recursion

$arr

array

&$arr the associative array, recursion

$localName

string

the current node name

Returns

arraythe array representing $xml, false on error