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

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 
> > interface?

>   Use SAX2 if you need namespace support :
>   http://xmlsoft.org/html/libxml-SAX2.html#xmlSAX2EndElementNs

Is this exposed in Python?

I've tried:

  libxml2.SaxDefaultVersion(2)
  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() ?

Rob
-- 
      ,'/:.          Dr Robert Sanderson (azaroth liverpool ac uk)
    ,'-/::::.        http://www.o-r-g.org/~azaroth/
  ,'--/::(@)::.      Special Collections and Archives, extension 3142
,'---/::::::::::.    University of Liverpool
____/:::::::::::::.  
I L L U M I N A T I  L5R Shop: http://www.cardsnotwords.com/






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