/external/fonttools/Tests/misc/ |
D | etree_test.py | 3 from fontTools.misc import etree 35 root = etree.fromstring(xml.encode("utf-8")) 36 result = etree.tostring(root, encoding="utf-8").decode("utf-8") 41 root = etree.Element("root") 43 etree.SubElement(root, "element", attrs).text = "text" 44 etree.SubElement(root, "element").text = "text" 45 root.append(etree.Element("empty-element")) 47 result = etree.tostring(root, encoding="unicode", pretty_print=True)
|
/external/markdown/markdown/extensions/ |
D | rss.py | 2 from markdown import etree 65 rss = etree.Element("rss") 68 channel = etree.SubElement(rss, "channel") 74 element = etree.SubElement(channel, tag) 82 item = etree.SubElement(channel, "item") 83 link = etree.SubElement(item, "link") 85 title = etree.SubElement(item, "title") 89 guidElem = etree.SubElement(item, "guid") 95 description = etree.SubElement(item, "description") 101 content = "\n".join([etree.tostring(node)
|
D | toc.py | 12 from markdown import etree 23 div = etree.Element("div") 29 header = etree.SubElement(div, "span") 68 newlist = etree.Element("ul") 90 last_li = etree.Element("li") 91 link = etree.SubElement(last_li, "a") 96 anchor = etree.SubElement(c, "a")
|
D | tables.py | 18 from markdown import etree 51 table = etree.SubElement(parent, 'table') 52 thead = etree.SubElement(table, 'thead') 54 tbody = etree.SubElement(table, 'tbody') 60 tr = etree.SubElement(parent, 'tr') 68 c = etree.SubElement(tr, tag)
|
D | footnotes.py | 27 from markdown import etree 120 div = etree.Element("div") 122 hr = etree.SubElement(div, "hr") 123 ol = etree.SubElement(div, "ol") 126 li = etree.SubElement(ol, "li") 129 backlink = etree.Element("a") 142 p = etree.SubElement(li, "p") 263 sup = etree.Element("sup") 264 a = etree.SubElement(sup, "a")
|
D | def_list.py | 23 from markdown import etree 62 dl = etree.SubElement(parent, 'dl') 65 dt = etree.SubElement(dl, 'dt') 69 dd = etree.SubElement(dl, 'dd') 84 dd = markdown.etree.SubElement(parent, 'dd')
|
D | abbr.py | 27 from markdown import etree 85 abbr = etree.Element('abbr')
|
/external/markdown/markdown/ |
D | etree_loader.py | 10 import xml.etree.cElementTree as etree_in_c 13 import xml.etree.ElementTree as etree namespace 19 import elementtree.ElementTree as etree namespace 28 elif etree.VERSION < "1.1": 32 return etree
|
D | inlinepatterns.py | 177 el = markdown.etree.Element(self.tag) 185 return markdown.etree.Element(self.tag) 195 el = markdown.etree.Element(self.tag) 208 el1 = markdown.etree.Element(tag1) 209 el2 = markdown.etree.SubElement(el1, tag2) 226 el = markdown.etree.Element("a") 278 el = markdown.etree.Element("img") 316 el = markdown.etree.Element('a') 329 el = markdown.etree.Element("img") 340 el = markdown.etree.Element("a") [all …]
|
D | blockprocessors.py | 155 li = markdown.etree.SubElement(parent, 'li') 206 pre = markdown.etree.SubElement(parent, 'pre') 207 code = markdown.etree.SubElement(pre, 'code') 240 quote = markdown.etree.SubElement(parent, 'blockquote') 277 p = markdown.etree.SubElement(lst[-1], 'p') 281 li = markdown.etree.SubElement(lst, 'li') 288 lst = markdown.etree.SubElement(parent, self.TAG) 298 li = markdown.etree.SubElement(lst, 'li') 351 h = markdown.etree.SubElement(parent, 'h%d' % len(m.group('level'))) 377 h = markdown.etree.SubElement(parent, 'h%d' % level) [all …]
|
D | html4.py | 41 ElementTree = markdown.etree.ElementTree 42 QName = markdown.etree.QName 43 Comment = markdown.etree.Comment 44 PI = markdown.etree.PI 45 ProcessingInstruction = markdown.etree.ProcessingInstruction
|
D | blockparser.py | 59 self.root = markdown.etree.Element(markdown.DOC_TAG) 61 return markdown.etree.ElementTree(self.root)
|
/external/fonttools/Lib/fontTools/misc/ |
D | plistlib.py | 22 from fontTools.misc import etree 292 el = etree.Element("string") 299 return etree.Element("true") 301 return etree.Element("false") 306 el = etree.Element("integer") 314 el = etree.Element("real") 320 el = etree.Element("dict") 330 k = etree.SubElement(el, "key") 338 el = etree.Element("array") 349 el = etree.Element("date") [all …]
|
D | etree.py | 45 from lxml.etree import * 50 from xml.etree.cElementTree import * 54 from xml.etree.ElementTree import XML 56 from xml.etree.ElementTree import * 80 from xml.etree.ElementTree import Element as _Element 319 from xml.etree.ElementTree import _namespace_map
|
/external/parameter-framework/upstream/tools/xmlValidator/ |
D | xmlValidator.py | 31 from lxml import etree 66 xmlTree = etree.parse(xmlFilePath) 83 schemaContent = etree.parse(schemaFilePath) 84 schema = etree.XMLSchema(schemaContent) 85 xmlContent = etree.parse(xmlFilePath)
|
/external/fonttools/Lib/fontTools/svgLib/path/ |
D | __init__.py | 6 from fontTools.misc import etree 39 self.root = etree.ElementTree() 41 tree = etree.parse(filename) 48 self.root = etree.fromstring(data)
|
/external/markdown/ |
D | regression-tests.py | 43 root = markdown.etree.Element("div") 46 self.assertEqual(markdown.etree.tostring(root), "<div><p>foo</p></div>") 52 self.assert_(isinstance(tree, markdown.etree.ElementTree)) 53 self.assert_(markdown.etree.iselement(tree.getroot())) 54 self.assertEqual(markdown.etree.tostring(tree.getroot()),
|
/external/vulkan-validation-layers/scripts/ |
D | common_codegen.py | 22 import xml.etree.ElementTree as etree namespace
|
/external/autotest/server/cros/ |
D | camerabox_utils.py | 8 from lxml import etree 95 tree = etree.parse( 97 parser=etree.XMLParser(compact=False)) 120 return etree.tostring(
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | glifLib.py | 36 from fontTools.misc import etree 585 root = etree.Element("glyph", OrderedDict([("name", glyphName), ("format", repr(formatVersion))])) 607 outline = etree.SubElement(root, "outline") 619 data = etree.tostring( 678 …etree.SubElement(element, "advance", OrderedDict([("height", repr(height)), ("width", repr(width))… 680 etree.SubElement(element, "advance", dict(width=repr(width))) 682 etree.SubElement(element, "advance", dict(height=repr(height))) 696 etree.SubElement(element, "unicode", dict(hex=hexCode)) 705 etree.SubElement(element, "note").text = tounicode(note) 719 etree.SubElement(element, "image", attrs) [all …]
|
/external/fonttools/Tests/svgLib/path/ |
D | shapes_test.py | 6 from fontTools.misc import etree 63 pb.add_path_from_element(etree.fromstring(svg_xml))
|
/external/python/cpython2/Doc/tools/ |
D | susp-ignored.csv | 131 library/xml.etree.elementtree,,:sometag,prefix:sometag 132 library/xml.etree.elementtree,,:fictional,"<actors xmlns:fictional=""http://characters.example.com"… 133 library/xml.etree.elementtree,,:character,<fictional:character>Lancelot</fictional:character> 134 library/xml.etree.elementtree,,:character,<fictional:character>Archie Leach</fictional:character> 135 library/xml.etree.elementtree,,:character,<fictional:character>Sir Robin</fictional:character> 136 library/xml.etree.elementtree,,:character,<fictional:character>Gunther</fictional:character> 137 library/xml.etree.elementtree,,:character,<fictional:character>Commander Clement</fictional:charact… 138 library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:actor', ns):" 139 library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)" 140 library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):"
|
/external/mesa3d/src/egl/generate/ |
D | genCommon.py | 31 import xml.etree.cElementTree as etree namespace 58 roots = [ etree.parse(xmlFile).getroot() for xmlFile in xmlFiles ]
|
/external/swiftshader/third_party/SPIRV-Tools/utils/ |
D | generate_registry_tables.py | 21 import xml.etree.ElementTree 65 registry = xml.etree.ElementTree.fromstring(xml_in.read())
|
/external/deqp-deps/SPIRV-Tools/utils/ |
D | generate_registry_tables.py | 21 import xml.etree.ElementTree 65 registry = xml.etree.ElementTree.fromstring(xml_in.read())
|