(PHP 8 >= 8.4.0)
XMLReader::fromString — Creates an XMLReader from an XML string
$source, ? string $encoding = null , int $flags = 0): staticCreates an XMLReader from an XML string.
Returns an XMLReader .
encoding will throw a
ValueError .