
12 Jul
2007
12 Jul
'07
6:26 p.m.
David Abrahams wrote:
on Thu Jul 12 2007, "Peter Dimov" <pdimov-AT-pdimov.com> wrote:
...
I find XML horrible to read, however I find most of the procedural code I've seen for manipulating it even more horrible.
...
You're optimizing the wrong case
I don't know about that. The kind of interface used above has become very popular in the Python world... because it's useful. It may not cover the entire domain of XML manipulations well, but it does cover an important corner.
Maybe it is, maybe it does. But you are still optimizing the wrong case; horrible procedural code for creating a toy XML. Now, if you find the code I posted horrible, that'd be another matter. :-)