Re: [xml] SAX + Namespaces

On Wed, 23 Jun 2004, Fabrice Desré - France Telecom R&D/DTL/TAL wrote:

Robert Sanderson wrote:
When I use the SAX interface, libxml2 ignores namespace definitions and
Is this expected? Is there a way to turn on namespace awareness in the SAX 

  Use SAX2 if you need namespace support :

Is this exposed in Python?

I've tried:

  libxml2.createPushParser(handler, doc, len(doc), 'foo.xml')

but the parser exhibits the same behaviour.

Is there another way to create a SAX parser in libxml2's python binding, 
or attach a SAX handler to one created with  createMemoryParserCtxt() ?

      ,'/:.          Dr Robert Sanderson (azaroth liverpool ac uk)
  ,'--/::(@)::.      Special Collections and Archives, extension 3142
,'---/::::::::::.    University of Liverpool
I L L U M I N A T I  L5R Shop:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]