autotest/autotest — pull request #434 by cevich (2012-07-02 16:36:37+00:00)
Title: Xml utils

This includes original patch I sent to ML, introducing TempXMLFile, XMLBackup, XMLBase. In addition I found that in order to support proper and uniform XPath support, we need to bundle another ElementTree sub-module: ElementPath. This is key because it allows users to access elements structurally. I've updated the unittests to make use of this but they also serve as a good example of how this can be used. For example, assume you have an ElementTree containing the 'virsh capabilities' XML output and you want to change the architecture of a guest:

xml.find('guest/arch/wordsize').text = 32

Much easier than doing the same thing with minidom.