/external/v8/build/android/incremental_install/ |
generate_android_manifest.py | 15 from xml.etree import ElementTree 21 ElementTree.register_namespace('android', _ANDROID_NAMESPACE) 51 meta_data_node = ElementTree.SubElement(parent, 'meta-data') 71 doc = ElementTree.fromstring(main_manifest) 74 app_node = ElementTree.SubElement(doc, 'application') 81 # Seems to be a bug in ElementTree, as doc.find() doesn't work here. 91 return ElementTree.tostring(doc, encoding='UTF-8')
|
/external/markdown/markdown/ |
etree_loader.py | 7 """Import the best implementation of ElementTree, return a module object.""" 9 try: # Is it Python 2.5+ with C implemenation of ElementTree installed? 12 try: # Is it Python 2.5+ with Python implementation of ElementTree? 13 import xml.etree.ElementTree as etree 18 try: # An earlier version of Python with Python ElementTree? 19 import elementtree.ElementTree as etree namespace 21 message(CRITICAL, "Failed to import ElementTree") 29 message(CRITICAL, "For ElementTree version 1.1 or higher is required")
|
blockparser.py | 38 """ Parse Markdown blocks into an ElementTree object. 41 looping through them and creating an ElementTree object. 49 """ Parse a markdown document into an ElementTree. 51 Given a list of lines, an ElementTree object (not just a parent Element) 53 The ElementTree object is returned. 58 # Create a ElementTree from the lines 61 return markdown.etree.ElementTree(self.root)
|
inlinepatterns.py | 13 # an ElementTree element or just plain text 141 """Return a ElementTree element from the given match. 201 """Return a ElementTree element nested in tag2 nested in tag1.
|
/external/v8/tools/testrunner/local/ |
junit_output.py | 29 import xml.etree.ElementTree as xml 48 xml.ElementTree(self.root).write(file, "UTF-8")
|
/prebuilts/tools/linux-x86_64/kythe/studio/ |
manifest2vname.py | 22 import xml.etree.ElementTree 25 doc = xml.etree.ElementTree.parse('.repo/manifests/default.xml')
|
/external/v8/build/android/gyp/ |
generate_split_manifest.py | 13 import xml.etree.ElementTree 69 doc = xml.etree.ElementTree.fromstring(main_manifest)
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/ |
test_treewalkers.py | 58 import xml.etree.ElementTree as ElementTree 62 treeTypes['ElementTree'] = \ 63 {"builder": treebuilders.getTreeBuilder("etree", ElementTree), 64 "walker": treewalkers.getTreeWalker("etree", ElementTree)} 67 import xml.etree.cElementTree as ElementTree 72 {"builder": treebuilders.getTreeBuilder("etree", ElementTree), 73 "walker": treewalkers.getTreeWalker("etree", ElementTree)} 77 import lxml.etree as ElementTree # flake8: noqa 231 setter = {'ElementTree': lambda d: d[0].set [all...] |
support.py | 25 import xml.etree.ElementTree as ElementTree 26 treeTypes['ElementTree'] = treebuilders.getTreeBuilder("etree", ElementTree, fullTree=True) 29 import elementtree.ElementTree as ElementTree namespace 30 treeTypes['ElementTree'] = treebuilders.getTreeBuilder("etree", ElementTree, fullTree=True)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/xml/etree/ |
ElementInclude.py | 2 # ElementTree 17 # The ElementTree toolkit is 48 # Limited XInclude support for the ElementTree package. 52 from . import ElementTree 72 # is an ElementTree instance. If the parse mode is "text", this 80 data = ElementTree.parse(file).getroot()
|
/prebuilts/gdb/linux-x86/lib/python2.7/xml/etree/ |
ElementInclude.py | 2 # ElementTree 17 # The ElementTree toolkit is 48 # Limited XInclude support for the ElementTree package. 52 from . import ElementTree 72 # is an ElementTree instance. If the parse mode is "text", this 80 data = ElementTree.parse(file).getroot()
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/etree/ |
ElementInclude.py | 2 # ElementTree 17 # The ElementTree toolkit is 48 # Limited XInclude support for the ElementTree package. 52 from . import ElementTree 72 # is an ElementTree instance. If the parse mode is "text", this 80 data = ElementTree.parse(file).getroot()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/etree/ |
ElementInclude.py | 2 # ElementTree 17 # The ElementTree toolkit is 48 # Limited XInclude support for the ElementTree package. 52 from . import ElementTree 72 # is an ElementTree instance. If the parse mode is "text", this 80 data = ElementTree.parse(file).getroot()
|
/external/deqp/scripts/ |
mustpass.py | 30 import xml.etree.cElementTree as ElementTree 277 doc.insert(0, ElementTree.Comment(mustpass.project.copyright)) 278 doc.insert(1, ElementTree.Comment(GENERATED_FILE_WARNING)) 281 uglyString = ElementTree.tostring(doc, 'utf-8') 315 return ElementTree.SubElement(parentElem, "TestInstance", attributes) 318 caseElem = ElementTree.SubElement(parentElem, "Test", name=testCase.name) 324 groupElem = ElementTree.SubElement(parentElem, "TestCase" if isLeafGroup(testGroup) else "TestSuite", name=testGroup.name) 332 pkgElem = ElementTree.Element("TestPackage", 351 mustpassElem = ElementTree.Element("Mustpass", version = mustpass.version) 355 packageElem = ElementTree.SubElement(mustpassElem, "TestPackage", name = package.module.name [all...] |
/external/chromium-trace/catapult/devil/devil/android/sdk/ |
shared_prefs.py | 14 from xml.etree import ElementTree 29 elem: An xml ElementTree object holding the preference data. 44 return ElementTree.tostring(self._elem) 157 ElementTree.SubElement(self._elem, 'string').text = str(item) 211 return _XML_DECLARATION + ElementTree.tostring(self.xml) 235 """Get the underlying xml document as an ElementTree object.""" 237 self._xml = ElementTree.Element('map') 247 self._xml = ElementTree.fromstring( 385 pref = pref_cls(ElementTree.SubElement(
|
/frameworks/base/tools/aapt2/ |
public_attr_map.py | 4 import xml.etree.ElementTree as ET
|
/frameworks/base/tools/layoutlib/rename_font/ |
test.py | 17 import xml.etree.ElementTree as etree
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_xml_etree.py | 11 # Don't re-import "xml.etree.ElementTree" module in the docstring, 20 from xml.etree import ElementTree as ET 60 >>> from xml.etree import ElementTree 72 tree = ET.ElementTree(elem) 144 >>> tree = ET.ElementTree(element) 148 >>> tree = ET.ElementTree(element) 262 >>> from xml.etree import ElementTree 264 >>> CurrentElementPath = ElementTree.ElementPath 265 >>> ElementTree.ElementPath = ElementTree._SimpleElementPath( [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_xml_etree.py | 11 # Don't re-import "xml.etree.ElementTree" module in the docstring, 20 from xml.etree import ElementTree as ET 60 >>> from xml.etree import ElementTree 72 tree = ET.ElementTree(elem) 144 >>> tree = ET.ElementTree(element) 148 >>> tree = ET.ElementTree(element) 262 >>> from xml.etree import ElementTree 264 >>> CurrentElementPath = ElementTree.ElementPath 265 >>> ElementTree.ElementPath = ElementTree._SimpleElementPath( [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_xml_etree.py | 11 # Don't re-import "xml.etree.ElementTree" module in the docstring, 20 from xml.etree import ElementTree as ET 60 >>> from xml.etree import ElementTree 72 tree = ET.ElementTree(elem) 144 >>> tree = ET.ElementTree(element) 148 >>> tree = ET.ElementTree(element) 262 >>> from xml.etree import ElementTree 264 >>> CurrentElementPath = ElementTree.ElementPath 265 >>> ElementTree.ElementPath = ElementTree._SimpleElementPath( [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_xml_etree.py | 11 # Don't re-import "xml.etree.ElementTree" module in the docstring, 20 from xml.etree import ElementTree as ET 60 >>> from xml.etree import ElementTree 72 tree = ET.ElementTree(elem) 144 >>> tree = ET.ElementTree(element) 148 >>> tree = ET.ElementTree(element) 262 >>> from xml.etree import ElementTree 264 >>> CurrentElementPath = ElementTree.ElementPath 265 >>> ElementTree.ElementPath = ElementTree._SimpleElementPath( [all...] |
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treebuilders/ |
etree.py | 16 ElementTree = ElementTreeImplementation 17 ElementTreeCommentType = ElementTree.Comment("asd").tag 23 self._element = ElementTree.Element(self._getETreeTag(name, 148 self._element = ElementTree.Comment(data) 262 if isinstance(element, ElementTree.ElementTree):
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treewalkers/ |
etree.py | 22 ElementTree = ElementTreeImplementation 23 ElementTreeCommentType = ElementTree.Comment("asd").tag 26 """Given the particular ElementTree representation, this implementation,
|
/external/selinux/policycoreutils/sepolicy/sepolicy/ |
interface.py | 123 import xml.etree.ElementTree 142 tree = xml.etree.ElementTree.parse(path) 144 tree = xml.etree.ElementTree.fromstring(xml_path)
|
/system/connectivity/shill/mobile_operator_db/ |
serviceproviders_converter.py | 26 from xml.etree import ElementTree 33 # - Note that the xml.etree.ElementTree.parse function actually returns 83 parser = ElementTree.XMLParser(encoding=FILE_ENCODING) 84 element_tree = ElementTree.parse(self._file_path, parser=parser) 227 ElementTree.SubElement(node, u'country', {u'code': country_code}) 234 ElementTree.SubElement(node, u'provider', provider_map) 239 name_node = ElementTree.SubElement(node, u'name', name_map) 559 rough_string_str = ElementTree.tostring(node, encoding=FILE_ENCODING)
|