Home | History | Annotate | Download | only in tests

Lines Matching refs:libxml2

8 import libxml2
17 libxml2.debugMemory(1)
33 libxml2.registerErrorHandler(callback, "")
44 reader = libxml2.newTextReaderFilename(file)
46 reader.SetParserProp(libxml2.PARSER_VALIDATE, 1)
91 input = libxml2.inputBuffer(str_io(s))
93 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
94 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
95 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
96 reader.SetParserProp(libxml2.PARSER_VALIDATE,1)
139 libxml2.setEntityLoader(myResolver)
141 input = libxml2.inputBuffer(str_io(s))
143 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
144 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
145 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
146 reader.SetParserProp(libxml2.PARSER_VALIDATE,1)
195 input = libxml2.inputBuffer(str_io(s))
197 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
198 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
199 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
200 reader.SetParserProp(libxml2.PARSER_VALIDATE,1)
240 input = libxml2.inputBuffer(str_io(s))
242 reader.SetParserProp(libxml2.PARSER_VALIDATE,1)
260 libxml2.cleanupParser()
261 if libxml2.debugMemory(1) == 0:
264 print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
265 libxml2.dumpMemory()