code: public static function factory($streamClass = 'GuzzleHttp\\Psr7\\Stream')
      {
          return new static([
              new ResourceAdapter($streamClass),
              new DomDocumentAdapter($streamClass),
              new SimpleXmlAdapter($streamClass),
              new StringAdapter($streamClass),
          ]);
      }
docs: Default SAX parser factory.
  
  @param string $streamClass FQCN to use when converting to XML document source to stream.
  @return SaxParser New SAX parser instance.