How to search HUGE XML with DOM?
Stefan Behnel
stefan.behnel-n05pAM at web.de
Tue Apr 25 08:27:21 EDT 2006
Sullivan WxPyQtKinter wrote:
> My search needs:
> 1. Search and return all the record (an element) with specific id.
> 2. Search and return all the record whose child nodes has a specific id
> or attribute.
Try lxml, which is based on the libxml2 library. The current SVN version has
support for xml:id through the XMLDTDID function. It simply returns an XML
tree and an ID dictionary.
http://codespeak.net/lxml
Stefan
More information about the Python-list
mailing list