/external/libxml2/python/tests/ |
readernext.py | 6 import libxml2 namespace 16 libxml2.debugMemory(1) 19 input = libxml2.inputBuffer(f) 81 libxml2.cleanupParser() 82 if libxml2.debugMemory(1) == 0: 85 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 86 libxml2.dumpMemory()
|
resolver.py | 3 import libxml2 namespace 12 libxml2.debugMemory(1) 17 libxml2.setEntityLoader(myResolver) 19 doc = libxml2.parseFile("doesnotexist.xml") 28 doc = libxml2.parseFile("doesnotexist.xml") 38 libxml2.cleanupParser() 39 if libxml2.debugMemory(1) == 0: 42 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 43 libxml2.dumpMemory()
|
tstmem.py | 2 import libxml2 namespace 10 libxml2.debugMemory(1) 16 dtd = libxml2.parseDTD(None, 'test.dtd') 17 ctxt = libxml2.newValidCtxt() 19 doc = libxml2.parseDoc(instance) 31 libxml2.cleanupParser() 32 if libxml2.debugMemory(1) == 0: 35 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 36 libxml2.dumpMemory()
|
tstxpath.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 16 pctxt = libxml2.xpathParserContext(_obj=ctx) 24 doc = libxml2.parseFile("tst.xml") 33 libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) 34 libxml2.registerXPathFunction(ctxt._o, "bar", None, bar) 58 libxml2.cleanupParser() 59 if libxml2.debugMemory(1) == 0: 62 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 63 libxml2.dumpMemory( [all...] |
validate.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 8 ctxt = libxml2.createFileParserCtxt("valid.xml") 28 ctxt = libxml2.createFileParserCtxt("valid.xml") 43 libxml2.registerErrorHandler(noerr, None) 45 ctxt = libxml2.createFileParserCtxt("invalid.xml") 64 ctxt = libxml2.createFileParserCtxt("invalid.xml") 77 libxml2.cleanupParser() 78 if libxml2.debugMemory(1) == 0: 81 print("Memory leak %d bytes" % (libxml2.debugMemory(1)) [all...] |
xpathext.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 14 doc = libxml2.parseFile("tst.xml") 24 libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) 25 libxml2.registerXPathFunction(ctxt._o, "bar", None, bar) 44 libxml2.cleanupParser() 45 if libxml2.debugMemory(1) == 0: 48 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 49 libxml2.dumpMemory()
|
xpathleak.py | 2 import sys, libxml2 namespace 4 libxml2.debugMemory(True) 33 libxml2.registerErrorHandler(callback, "-->") 35 doc = libxml2.parseDoc("<fish/>") 45 except libxml2.xpathError: 58 libxml2.cleanupParser() 59 leakedbytes = libxml2.debugMemory(True) 65 libxml2.dumpMemory()
|
xpathret.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 11 mydoc = libxml2.newDoc("1.0") 25 doc = libxml2.parseFile("tst.xml") 27 libxml2.registerXPathFunction(ctxt._o, "foo", None, foo) 52 libxml2.cleanupParser() 53 if libxml2.debugMemory(1) == 0: 56 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 57 libxml2.dumpMemory()
|
indexes.py | 4 import libxml2 namespace 7 libxml2.debugMemory(1) 62 ctxt = libxml2.createPushParser(handler, "<foo>\n", 6, "test.xml") 88 ctxt = libxml2.createPushParser(handler, chunk, len(chunk), "test.xml") 108 libxml2.cleanupParser() 109 if libxml2.debugMemory(1) == 0: 112 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 113 libxml2.dumpMemory()
|
input_callback.py | 6 import libxml2 namespace 49 opts = libxml2.XML_PARSE_DTDLOAD | libxml2.XML_PARSE_NONET | libxml2.XML_PARSE_COMPACT 57 libxml2.registerErrorHandler(my_global_error_cb, None) 59 parser = libxml2.createURLParserCtxt(docpath, opts) 72 except libxml2.parserError: 97 libxml2.registerInputCallback(my_input_cb) 112 test_callback=lambda: libxml2.popInputCallbacks(), 135 libxml2.popInputCallbacks( [all...] |
outbuf.py | 3 import libxml2 namespace 13 buf = libxml2.createOutputBuffer(f, "ISO-8859-1") 32 buf = libxml2.createOutputBuffer(f, 'UTF-8') 33 doc = libxml2.parseDoc(input) 55 doc = libxml2.parseDoc(input) 58 buf = libxml2.createOutputBuffer(f, 'UTF-8') 78 doc = libxml2.parseDoc(input) 79 buf = libxml2.createOutputBuffer(f, 'UTF-8') 87 buf = libxml2.createOutputBuffer(f, 'UTF-8') 98 libxml2.debugMemory(1 [all...] |
pushSAX.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 45 ctxt = libxml2.createPushParser(handler, "<foo", 4, "test.xml") 59 libxml2.cleanupParser() 60 if libxml2.debugMemory(1) == 0: 63 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 64 libxml2.dumpMemory()
|
pushSAXhtml.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 45 ctxt = libxml2.htmlCreatePushParser(handler, "<foo", 4, "test.xml") 60 libxml2.cleanupParser() 61 if libxml2.debugMemory(1) == 0: 64 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 65 libxml2.dumpMemory()
|
reader2.py | 8 import libxml2 namespace 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 [all...] |
reader3.py | 6 import libxml2 namespace 21 libxml2.debugMemory(1) 27 input = libxml2.inputBuffer(f) 64 input = libxml2.inputBuffer(f) 66 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES, 1) 133 libxml2.setEntityLoader(myResolver) 135 input = libxml2.inputBuffer(str_io(s)) 137 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1) 155 libxml2.cleanupParser() 156 if libxml2.debugMemory(1) == 0 [all...] |
reader6.py | 6 import libxml2 namespace 32 libxml2.debugMemory(1) 37 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 50 input = libxml2.inputBuffer(f) 90 libxml2.registerErrorHandler(callback, "") 93 input = libxml2.inputBuffer(f) 120 libxml2.relaxNGCleanupTypes() 123 libxml2.cleanupParser() 124 if libxml2.debugMemory(1) == 0: 127 print("Memory leak %d bytes" % (libxml2.debugMemory(1)) [all...] |
tstLastError.py | 4 import libxml2 namespace 13 libxml2.debugMemory(1) 16 libxml2.cleanupParser() 17 if libxml2.debugMemory(1) != 0: 18 libxml2.dumpMemory() 19 self.fail("Memory leak %d bytes" % (libxml2.debugMemory(1),)) 25 when the exception is raised, check the libxml2.lastError for 28 libxml2.registerErrorHandler(None,None) 32 e = libxml2.lastError() 54 self.failUnlessXmlError(libxml2.readFile [all...] |
validDTD.py | 2 import libxml2 namespace 19 libxml2.debugMemory(1) 28 dtd = libxml2.parseDTD(None, 'test.dtd') 29 ctxt = libxml2.newValidCtxt() 34 doc = libxml2.parseDoc(valid) 42 doc = libxml2.parseDoc(invalid) 53 libxml2.cleanupParser() 54 if libxml2.debugMemory(1) == 0: 57 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 58 libxml2.dumpMemory( [all...] |
validRNG.py | 2 import libxml2 namespace 18 libxml2.debugMemory(1) 42 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 49 doc = libxml2.parseDoc(valid) 57 doc = libxml2.parseDoc(invalid) 67 libxml2.relaxNGCleanupTypes() 70 libxml2.cleanupParser() 71 if libxml2.debugMemory(1) == 0: 74 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 75 libxml2.dumpMemory( [all...] |
validSchemas.py | 2 import libxml2 namespace 18 libxml2.debugMemory(1) 50 ctxt_parser = libxml2.schemaNewMemParserCtxt(schema, len(schema)) 56 doc = libxml2.parseDoc(valid) 64 doc = libxml2.parseDoc(invalid) 74 libxml2.schemaCleanupTypes() 77 libxml2.cleanupParser() 78 if libxml2.debugMemory(1) == 0: 81 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 82 libxml2.dumpMemory( [all...] |
sync.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 47 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 59 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 71 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 83 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 96 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 109 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 122 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml") 133 libxml2.cleanupParser( [all...] |
thread2.py | 9 import libxml2 namespace 27 old = libxml2.lineNumbersDefault(0) 28 libxml2.lineNumbersDefault(old) 42 doc = libxml2.parseFile("bad.xml") 50 libxml2.registerErrorHandler(eh.handler,"") 53 libxml2.lineNumbersDefault(1) 75 libxml2.thrDefLineNumbersDefaultValue(1) 94 libxml2.cleanupParser() 95 if libxml2.debugMemory(1) == 0: 98 print("Memory leak %d bytes" % (libxml2.debugMemory(1)) [all...] |
/external/libxml2/xstc/ |
fixup-tests.py | 4 import libxml2 namespace 7 libxml2.debugMemory(1) 39 schemaDoc = libxml2.parseFile(schemaFile) 65 impDoc = libxml2.parseFile(impFile) 95 libxml2.cleanupParser() 96 if libxml2.debugMemory(1) != 0: 97 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 98 libxml2.dumpMemory()
|
/external/libxml2/ |
regressions.py | 4 import libxml2 namespace 20 # Note that this current version requires the Python bindings for libxml2 to 331 reader = libxml2.newTextReaderFilename(filename)
|
check-xinclude-test-suite.py | 7 import libxml2 namespace 42 libxml2.registerErrorHandler(errorHandler, None) 109 doc = libxml2.parseFile(URI) 179 base = libxml2.buildURI(basedir, base) 188 conf = libxml2.parseFile(CONF)
|