xml processing : too slow...

Shagshag13 shagshag13 at yahoo.fr
Wed Jul 24 13:33:12 EDT 2002


"Alex Martelli" <aleax at aleax.it> a écrit dans le message de news: M6A%8.132311$vm5.4357332 at news2.tin.it...

> So you need EACH separate line to be a well-formed XML document
> in its own right, or else include no closing-tag?  I'm confused.

In fact, i'm wondering if i'm not using wrong tool (with minidom)... What i need here and which took a while with dom is to

* check well formedness
* process each line which are like this:
<tag0><tag1> 1 2 </tag1><tag2 attr="value">3</tag2></tag0>
-> to have:
['<tag0>', '<tag1>', '1', '2', '</tag1>', '<tag2 attr="value">', '3', '</tag2>', '</tag0>']

s13.






More information about the Python-list mailing list