XMLReader::fromStream Creates an XMLReader from a stream to read from &reftitle.description; public static staticXMLReader::fromStream resourcestream stringnullencoding&null; intflags0 stringnulldocumentUri&null; Creates an XMLReader from a stream to read from. &reftitle.parameters; stream The stream to read the XML from. encoding The document encoding or &null;. flags A bitmask of the LIBXML_* constants. documentUri Optional document base URI. &reftitle.returnvalues; Returns an XMLReader. &reftitle.errors; Passing an invalid encoding will throw a ValueError. Passing a resource that is not a stream to stream will throw a TypeError. &reftitle.seealso; XMLReader::fromString XMLReader::fromUri