Home | History | Annotate | Download | only in utils

Lines Matching defs:xml

17 # This script is used to split the jdiff xml into several smaller xml files

18 # so that we could avoid the xml resource limit in Android platform.
24 # 1. Read the xml file and generate DOM tree
25 # 2. Generate xml file for each tagname.
28 # xml source:
39 # when the tagname is specified as A, it will generate two xml files:
54 # when the tagname is specified as B, it will generated three xml files:
77 # 3. Currently will remove all the doc element. - workaround for jdiff xml
80 import xml.dom.minidom;
82 """Split the jdiff xml into several smaller xml files by specified tag.
86 self.doc = xml.dom.minidom.parse(xmlfile)
88 self.out = os.path.join(outPath, "xml")
106 if child.nodeType == xml.dom.minidom.Node.ELEMENT_NODE:
123 filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml")
125 doc = xml.dom.minidom.Document()