public static function convertFromXMLString($root_element, $xml)
    {
        $doc = new DOMDocument('1.0', 'utf-8');
        $doc->loadXML($xml);

        return self::convertFromDOMDocument($root_element, $doc);
    }
public static function convertFromXMLString($root_element, $xml)
    {
        $doc = new DOMDocument('1.0', 'utf-8');
        $doc->loadXML($xml);

        return self::convertFromDOMDocument($root_element, $doc);
    }
public static function convertFromXMLString ( $ root_element , $ xml ) { $ doc = new DOMDocument ( '1.0' , 'utf-8' ) ; $ doc -> loadXML ( $ xml ) ; return self :: convertFromDOMDocument ( $ root_element , $ doc ) ; }
Given a string of XML, this function will convert it to an `XMLElement`
object and return the result.

@since Symphony 2.4
@param string $root_element
@param string $xml
A string of XML
@return XMLElement
Given a string of XML this function will convert it to an XMLElement object and return the result .