def FromXmlStream(stream, ownerDocument=None, validate=0, keepAllWs=0, catName=None, saxHandlerClass=XmlDomGenerator, parser=None): reader = Reader(validate, keepAllWs, catName, saxHandlerClass, parser) return reader.fromStream(stream, ownerDocument)