[4suite] Re: [XML-SIG] unicode data

Uche Ogbuji uche.ogbuji@fourthought.com
Fri, 03 Nov 2000 09:21:35 -0700


"Martin v. Loewis" wrote:

> > How do I use a different driver? This is how I get my dom:
> >
> > from xml.dom.ext.reader import Sax
> > doc = Sax.FromXml(s,ownerDocument)
> 
> Good question, with no satisfying answer, at the moment. I envision an
> API where you say
> 
> from xml.dom.saxexts import make_parser
> p = parser.make_parser("xml.sax.drivers.drv_sgmlop") # that works today
> doc = Sax.FromXml(s,ownerDocument,parser=p)
> 
> The last part doesn't work, yet - please try the patch I've attached
> below; I'd like to ship that with 0.6.2 unless I get an update of 4DOM
> that solves this in a different way.
> 
> With 0.6.1, your only option is to set the environment variable
> PY_SAX_PARSER to xml.sax.drivers.drv_sgmlop.

Martin is kindly not pointing out that I promised to do this and never
got around to it.  Thanks, Martin.  We'll apply the patch with some
mods.

-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python