import xml.dom.minidom from xml.dom import getChildNodesByName xdom = xml.dom.minidom.parse("GenericAddressing.xml") xdoc = xdom.documentElement