Jackalope\Transport\DoctrineDBAL\Client::xmlToProps PHP Method

xmlToProps() protected method

Convert the node XML to stdClass node representation containing all properties
protected xmlToProps ( string $xml ) : stdClass
$xml string
return stdClass
    protected function xmlToProps($xml)
    {
        $data = new \stdClass();
        $dom = new \DOMDocument('1.0', 'UTF-8');
        $dom->loadXML($xml);
        foreach ($dom->getElementsByTagNameNS('http://www.jcp.org/jcr/sv/1.0', 'property') as $propertyNode) {
            $this->mapPropertyFromElement($propertyNode, $data);
        }
        return $data;
    }