Use xml.etree.ElementTree to parse XML.

libxml2's xpath is a bit more elegant, but ElementTree comes with the standard
Python distribution (since 2.5). This script is now totally self-contained,
which is quite nice.
Make sure --domain ends with a dot.