[XML-SIG] Re: value error when parsing XML

Andrew Clover and-xml at doxdesk.com
Tue Aug 3 20:13:15 CEST 2004

Ajay Brar <abra9823 at mail.usyd.edu.au> wrote:

> i am using a SAX parser.

I don't do a lot of SAX, but it looks to me like there's a bug in the 
xml.sax.saxutils InputSource which is likely to be the cause of your 
trouble. (Details to follow.)

 > i think its something to do with the way i call the parser
 > parser.parse("../um_xml/um_ajay.xml")

Yes. I would suggest passing in a URI instead:

   filename= '../um_xml/um__ajay.xml'
   uri= 'file:'+urllib.pathname2url(os.path.abspath(filename))

Andrew Clover
mailto:and at doxdesk.com

More information about the XML-SIG mailing list