I think your operations below can be inplemented in module libvirt_xml/libvirt_xml.py.
Actually, LibvirtXML in libvirt_xml/libvirt_xml.py is a special class for capabilities' XML.
And your file about cpu features is a child element in it.