Home
last modified time | relevance | path

Searched refs:etree (Results 1 – 25 of 177) sorted by relevance

12345678

/external/fonttools/Tests/misc/
Detree_test.py2 from fontTools.misc import etree
34 root = etree.fromstring(xml.encode("utf-8"))
35 result = etree.tostring(root, encoding="utf-8").decode("utf-8")
40 root = etree.Element("root")
42 etree.SubElement(root, "element", attrs).text = "text"
43 etree.SubElement(root, "element").text = "text"
44 root.append(etree.Element("empty-element"))
46 result = etree.tostring(root, encoding="unicode", pretty_print=True)
/external/markdown/markdown/extensions/
Drss.py2 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)
Dtables.py18 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)
Dtoc.py12 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")
Dfootnotes.py27 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")
Ddef_list.py23 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')
/external/fonttools/Lib/fontTools/misc/plistlib/
D__init__.py24 from fontTools.misc import etree
330 def _string_element(value: str, ctx: SimpleNamespace) -> etree.Element:
331 el = etree.Element("string")
336 def _bool_element(value: bool, ctx: SimpleNamespace) -> etree.Element:
338 return etree.Element("true")
339 return etree.Element("false")
342 def _integer_element(value: int, ctx: SimpleNamespace) -> etree.Element:
344 el = etree.Element("integer")
350 def _real_element(value: float, ctx: SimpleNamespace) -> etree.Element:
351 el = etree.Element("real")
[all …]
/external/markdown/markdown/
Detree_loader.py10 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
Dinlinepatterns.py177 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 …]
Dblockprocessors.py155 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 …]
Dhtml4.py41 ElementTree = markdown.etree.ElementTree
42 QName = markdown.etree.QName
43 Comment = markdown.etree.Comment
44 PI = markdown.etree.PI
45 ProcessingInstruction = markdown.etree.ProcessingInstruction
Dblockparser.py59 self.root = markdown.etree.Element(markdown.DOC_TAG)
61 return markdown.etree.ElementTree(self.root)
/external/parameter-framework/upstream/tools/xmlValidator/
DxmlValidator.py35 from lxml import etree
67 xmlTree = etree.parse(xmlFilePath)
84 schemaContent = etree.parse(schemaFilePath)
85 schema = etree.XMLSchema(schemaContent)
86 xmlContent = etree.parse(xmlFilePath)
/external/fonttools/Lib/fontTools/svgLib/path/
D__init__.py4 from fontTools.misc import etree
37 self.root = etree.ElementTree()
39 tree = etree.parse(filename)
46 self.root = etree.fromstring(data)
/external/fonttools/Lib/fontTools/ufoLib/
DglifLib.py36 from fontTools.misc import etree
678 root = etree.Element("glyph", glyphAttrs)
700 outline = etree.SubElement(root, "outline")
712 data = etree.tostring(
784etree.SubElement(element, "advance", OrderedDict([("height", repr(height)), ("width", repr(width))…
786 etree.SubElement(element, "advance", dict(width=repr(width)))
788 etree.SubElement(element, "advance", dict(height=repr(height)))
802 etree.SubElement(element, "unicode", dict(hex=hexCode))
810 etree.SubElement(element, "note").text = note
824 etree.SubElement(element, "image", attrs)
[all …]
/external/fonttools/Doc/source/misc/
Detree.rst2 etree title
5 .. automodule:: fontTools.misc.etree
/external/mesa3d/bin/
Dpost_version_test.py101 def two_releases(self) -> html.etree.ElementTree:
132 def test_two_releases(self, two_releases: html.etree.ElementTree):
146 def test_last_Release(self, two_releases: html.etree.ElementTree):
/external/angle/src/libANGLE/renderer/vulkan/
Dgen_vk_mandatory_format_support_table.py14 import xml.etree.ElementTree as etree namespace
123 tree = etree.parse(script_relative(vk_xml_file))
/external/fonttools/Tests/svgLib/path/
Dshapes_test.py2 from fontTools.misc import etree
122 pb.add_path_from_element(etree.fromstring(svg_xml))
/external/markdown/
Dregression-tests.py43 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/angle/scripts/
Dregistry_xml.py15 import xml.etree.ElementTree as etree namespace
311 tree = etree.parse(script_relative(xml_file))
320 angle_ext_tree = etree.parse(script_relative(ext_file))
/external/fonttools/Lib/fontTools/misc/
Detree.py44 from lxml.etree import *
49 from xml.etree.cElementTree import *
53 from xml.etree.ElementTree import XML
55 from xml.etree.ElementTree import *
79 from xml.etree.ElementTree import Element as _Element
318 from xml.etree.ElementTree import _namespace_map
/external/autotest/server/cros/
Dcamerabox_utils.py9 from lxml import etree
114 tree = etree.parse(
116 parser=etree.XMLParser(compact=False))
140 return etree.tostring(
/external/mesa3d/src/mapi/new/
Dgen_gldispatch_mapi.py36 import xml.etree.ElementTree as etree namespace
44 roots = [ etree.parse(filename).getroot() for filename in xmlFiles ]
/external/python/cpython2/Doc/tools/
Dsusp-ignored.csv131 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):"

12345678