src/Metadata.php
public function createEntityDescriptor($xml)
    {
        $deserializationContext = new DeserializationContext();
        $deserializationContext->getDocument()->loadXML($xml);

        $ed = new EntityDescriptor();
        $ed->deserialize($deserializationContext->getDocument(), $deserializationContext);

        return $ed;
    }
public function createEntityDescriptor($xml)
    {
        $deserializationContext = new DeserializationContext();
        $deserializationContext->getDocument()->loadXML($xml);

        $ed = new EntityDescriptor();
        $ed->deserialize($deserializationContext->getDocument(), $deserializationContext);

        return $ed;
    }
public function createEntityDescriptor ( $ xml ) { $ deserializationContext = new DeserializationContext ( ) ; $ deserializationContext -> getDocument ( ) -> loadXML ( $ xml ) ; $ ed = new EntityDescriptor ( ) ; $ ed -> deserialize ( $ deserializationContext -> getDocument ( ) , $ deserializationContext ) ; return $ ed ; }
Create an EntityDescriptor instance with its XML metadata contents

@param string $xml

@return EntityDescriptor
Create an EntityDescriptor instance with its XML metadata contents