[XML-SIG] pyxml wants Internet connection?

Martin v. Löwis martin at v.loewis.de
Tue Jun 10 06:59:13 EDT 2003

Gary Robinson <grobinson at transpose.com> writes:

> > I see. After invoking the parser's reset, and before invoking feed, you
> > need to invoke
> But the following code doesn't work:
> from xml.sax import make_parser
> import xml.parsers.expat
> myparser = make_parser()
> myparser._parser.SetParamEntityParsing(xml.parsers.expat.XML_PARAM_ENTITY_PA
> It gets the error: "AttributeError: 'NoneType' object has no attribute
> 'SetParamEntityParsing'"

That's why I said "after invoking the parser's reset, and before
invoking feed". In your code, you invoke neither reset nor feed, but
you should.

You have to study the expatparser source code; this mode of operation
isn't really supported.


More information about the XML-SIG mailing list