Home | History | Annotate | Download | only in etree

Lines Matching refs:parse

69 # @param parse Parse mode.  Either "xml" or "text".
71 # @return The expanded resource. If the parse mode is "xml", this
72 # is an ElementTree instance. If the parse mode is "text", this
77 def default_loader(href, parse, encoding=None):
79 if parse == "xml":
80 data = ElementTree.parse(file).getroot()
109 parse = e.get("parse", "xml")
110 if parse == "xml":
111 node = loader(href, parse)
114 "cannot load %r as %r" % (href, parse)
120 elif parse == "text":
121 text = loader(href, parse, e.get("encoding"))
124 "cannot load %r as %r" % (href, parse)
135 "unknown parse type in xi:include tag (%r)" % parse