[XML-SIG] Validating parser?

Martin v. Loewis martin@v.loewis.de
Fri, 26 Oct 2001 20:38:12 +0200


>       self.parser.feed(buf)
>   AttributeError: feed
> 
> This is with Python 2.1 and PyXML 0.6.6. Any suggestions?

The problem apparently is that Pirxx does not implement the
IncrementalParser interface, and that minidom.parse requires such a
parser.

You could try the 4DOM builders, 

parser = make_parser(['pirxx'])
p = xml.dom.ext.reader.Sax2.Reader(parser=parser)
p.FromStream(open('scientific_python.xml'))

HTH,
Martin