src/ApiProblem.php
public static function fromXml(string $string) : self
    {
        $xml = new \SimpleXMLElement($string);

        $data = static::xmlToArray($xml);

        return static::decompile($data);
    }
public static function fromXml(string $string) : self
    {
        $xml = new \SimpleXMLElement($string);

        $data = static::xmlToArray($xml);

        return static::decompile($data);
    }
public static function fromXml ( string $ string ) : self { $ xml = new \ SimpleXMLElement ( $ string ) ; $ data = static :: xmlToArray ( $ xml ) ; return static :: decompile ( $ data ) ; }
Parses an XML string into a Problem object.

@param string $string
The XML string to parse.
@return ApiProblem
A newly constructed problem object.
Parses an XML string into a Problem object .