Home
last modified time | relevance | path

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

123

/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)
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")
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)
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')
Dabbr.py27 from markdown import etree
85 abbr = etree.Element('abbr')
/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.py31 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/chromium-trace/catapult/third_party/beautifulsoup4/bs4/
Ddiagnose.py36 from lxml import etree
37 print "Found lxml version %s" % ".".join(map(str,etree.LXML_VERSION))
75 from lxml import etree
76 for event, element in etree.iterparse(StringIO(data), html=html, **kwargs):
176 from lxml import etree
178 etree.HTML(data)
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/builder/
D_lxml.py9 from lxml import etree
24 DEFAULT_PARSER_CLASS = etree.XMLParser
42 return etree.XMLParser(
120 except (UnicodeDecodeError, LookupError, etree.ParserError), e:
219 return etree.HTMLParser
227 except (UnicodeDecodeError, LookupError, etree.ParserError), e:
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treebuilders/
Detree_lxml.py21 from . import etree as etree_builders
24 import lxml.etree as etree namespace
30 comment_type = etree.Comment("asd").tag
94 assert isinstance(element, etree._Element)
188 implementation = etree
191 builder = etree_builders.getETreeModule(etree, fullTree=fullTree)
343 root = etree.fromstring(docStr)
347 root.addprevious(etree.Comment(comment_token["data"]))
D__init__.py69 from . import etree
73 return etree.getETreeModule(implementation, **kwargs).TreeBuilder
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/
Dtest_serializer.py21 from lxml import etree
149 self.parser = etree.XMLParser(resolve_entities=False)
155 tree = etree.fromstring(doc, parser=self.parser).getroottree()
161 tree = etree.fromstring(doc, parser=self.parser).getroottree()
167 tree = etree.fromstring(doc, parser=self.parser).getroottree()
/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/chromium-trace/catapult/third_party/html5lib-python/doc/
Dhtml5lib.treebuilders.rst28 :mod:`etree` Module
31 .. automodule:: html5lib.treebuilders.etree
Dhtml5lib.treewalkers.rst28 :mod:`etree` Module
31 .. automodule:: html5lib.treewalkers.etree
Dmovingparts.rst15 * ``etree`` - this is the default; builds a tree based on ``xml.etree``,
18 ``xml.etree.cElementTree`` on Python 2.x) is used.
22 * ``lxml.etree`` - uses lxml's implementation of the ``ElementTree``
60 provides walkers for all three supported types of trees (``etree``,
79 >>> walker = html5lib.getTreeWalker("etree")
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treewalkers/
Dlxmletree.py4 from lxml import etree
5 from ..treebuilders.etree import tag_regexp
142 elif node.tag == etree.Comment:
145 elif node.tag == etree.Entity:
/external/vulkan-validation-layers/
Dreg.py25 from lxml import etree
208 self.tree = etree.parse(file)
371 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
375 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
379 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
383 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
387 etree.tostring(self.apidict[key].elem)[0:maxlen], file=filehandle)
391 etree.tostring(self.extdict[key].elem)[0:maxlen], file=filehandle)
/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/tests/
Dtest_lxml.py7 import lxml.etree
9 LXML_VERSION = lxml.etree.LXML_VERSION
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/
Dutils.py8 import xml.etree.cElementTree as default_etree
10 import xml.etree.ElementTree as default_etree

123