Suggestions for Python XML library which can search and insert

lainedacier at gmail.com lainedacier at gmail.com
Tue Jul 26 01:08:07 EDT 2005


Hi,

I'm looking for a library that can search through an XML document tree,
locate an element by attribute (ideally this can be done through
XPath), and insert an element (as its child).

Simple? Yes? ...but the code I've seen so far which does this uses
'nested for loops' for trees which are relatively shallow compared to
mine. So I'm wondering if you could give me some suggestions as to
which XML library could do this without resorting to nested for loops,
and/or better yet, what's the trend in this type of operation?

Thanks in advance.




More information about the Python-list mailing list