2011/7/28 Venkatraman S <venka...@gmail.com>:
> parsing using minidom is one of the slowest. if you just want to extract the
> distance and assuming that it(the tag) will always be consistent, then i
> would always suggest regexp. xml parsing is a pain.

regexp is a bad solution to parse xml.

minidom is the fastest solution if you consider the programmer time
instead of developer time.  Minidom is available in standard library,
you don't have to add another dependency and worry about PyPI
downtimes and lxml compilations failures.

I don't think there will be significant performance difference between
regexp and minidom unless you are doing it a million times.

Anand
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to