public static function fromString($str, $directory = null) {        
        return new self((new fphp\Helper\XmlParser())->parseString($str));
    }
public static function fromString($str, $directory = null) {        
        return new self((new fphp\Helper\XmlParser())->parseString($str));
    }
public static function fromString ( $ str , $ directory = null ) { return new self ( ( new fphp \ Helper \ XmlParser ( ) ) -> parseString ( $ str ) ) ; }
Creates an XML configuration from an XML string.
@param string $str
@param string $directory ignored
@return XmlConfiguration
Creates an XML configuration from an XML string .