[lxml-dev] xpath comparison

Olivier Collioud Olivier.Collioud at wipo.int
Tue Jun 10 09:26:28 CEST 2008


Hello.

> Please report back if any of the above approaches worked better for
you.

Finally I choose to first collect SREF and MREF elements values from
the first XML file in a dictionary/set structure
(to factorise and avoid duplicates) and then loop over it for each
SYMBOL found in the second XML file.

This solution is at  least 10 times faster than the previous one and is
fast enough.

Thank you.

Olivier.


------
World Intellectual Property Organization Disclaimer:

This electronic message may contain privileged, confidential and
copyright protected information. If you have received this e-mail
by mistake, please immediately notify the sender and delete this
e-mail and all its attachments. Please ensure all e-mail attachments
are scanned for viruses prior to opening or using.




More information about the lxml-dev mailing list