nList = cNodes[1].getElementsByTagName("to") for node in nList: eList = node.getElementsByTagName("addr") for e in eList: if e.hasAttribute("type"): if e.getAttribute("type") == "TO": print e.toxml()
nList = cNodes[1].getElementsByTagName("to") for node in nList: eList = node.getElementsByTagName("addr") for e in eList: if e.hasAttribute("type"): if e.getAttribute("type") == "CC": print e.toxml()
nList = cNodes[1].getElementsByTagName("to") for node in nList: eList = node.getElementsByTagName("addr") for e in eList: if e.hasAttribute("type"): if e.getAttribute("type") == "BC": print e.toxml()
Related Scripts with Example Source Code in same category :