[XML-SIG] Re: [Twisted-Python] Can anyone recommend a sensible XML parser for Python?
uche.ogbuji at fourthought.com
Mon Sep 9 15:42:44 EDT 2002
> uche wrote:
> > > For the applications that I'm intending to write, just doing my own parser and
> > > API is both more appealing and more rewarding.
> > Really? Color me deep skeptical. I have not seen an application on earth
> > where implementing one's own parser is a good idea, and precious few where
> > implementing one's own API is a good idea.
> on the other hand, virtually every commercial XML python user
> I know of use their own non-pydom parser/sax-style api/dom-
> style api (with 4thought being the obvious exception, of course).
Really? I am surprised. I suspect the reasons for this would not be as
straightforward as truly unique requirements.
> if I couldn't use ElementTree-like apis, I'd probably give up XML
> (using element trees, Glyph's use case would look something like:
> tree = deepcopy.deepcopy(template_tree)
> for node in tree.find(pattern):
> expand(context, node)
I'm not familiar with ElementTrees. At any rate, I don't see this use case as
very daunting, especially if you have DOM and generators.
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Track chair, XML/Web Services One Boston: http://www.xmlconference.com/
Basic XML and RDF techniques for knowledge management, Part 7 -
Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra
Python and XML development using 4Suite, Part 3: 4RDF -
More information about the Twisted-Python