[XML-SIG] dom building, sax, and namespaces
Wed, 23 Jan 2002 18:05:42 +0100 (CET)
On Wed, 23 Jan 2002, Andrew Dalke wrote:
> > Is there some way I can build a proper namespace'd DOM without having
> > the parser support feature_namespaces? Some sort of adapter, perhaps?
> > I couldn't find such in the codebase. I did find code as in
> > sax/drivers2/drv_xmlproc.py
> > which I think I could use to write such an adapter, but it would
> > be better if someone pointed out to me existing code rather than
> > chance my misunderstandings and errors.
> Attached is the adapter code I copied and tweaked from drv_xmlproc.py.
> It does seem to work in that the following gives me output. Yippee!
you shouldn't have to use an adapter. The example in the previous mail you
posted works when you use XMLGenerator instead of pulldom.
> (BTW, is there no built-in function to get the concatenation of all
> the text nodes, like my get_text function, below?)
I don't know if there is one in 4Suite or PyXML, but I think this is a job