/external/libxml2/python/tests/ |
reader2.py | 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 [all...] |
tstxpath.py | 3 import libxml2 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...] |
validDTD.py | 2 import libxml2 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...] |
validSchemas.py | 2 import libxml2 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...] |
build.py | 2 import libxml2 6 libxml2.debugMemory(1) 8 doc = libxml2.newDoc("1.0") 11 pi = libxml2.newPI("test", "PI content") 22 doc = libxml2.parseFile("tmp.xml") 54 libxml2.cleanupParser() 55 if libxml2.debugMemory(1) == 0: 58 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 59 libxml2.dumpMemory()
|
nsdel.py | 7 import libxml2 25 libxml2.debugMemory(1) 28 doc = libxml2.parseDoc(instance) 37 doc = libxml2.parseDoc(instance) 46 doc = libxml2.newDoc("1.0") 57 libxml2.cleanupParser() 58 if libxml2.debugMemory(1) == 0: 61 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 62 libxml2.dumpMemory()
|
relaxng.py | 2 import libxml2 6 libxml2.debugMemory(1) 26 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 29 doc = libxml2.parseDoc(instance) 39 libxml2.relaxNGCleanupTypes() 42 libxml2.cleanupParser() 43 if libxml2.debugMemory(1) == 0: 46 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 47 libxml2.dumpMemory()
|
reader6.py | 6 import libxml2 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...] |
thread2.py | 9 import libxml2 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...] |
ctxterror.py | 7 import libxml2 10 libxml2.debugMemory(1) 23 parserCtxt = libxml2.createPushParser(None,"",0,"test.xml") 41 parserCtxt = libxml2.createPushParser(None,"",0,"test.xml") 51 libxml2.cleanupParser() 52 if libxml2.debugMemory(1) == 0: 55 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 56 libxml2.dumpMemory()
|
walker.py | 6 import libxml2 9 libxml2.debugMemory(1) 39 doc = libxml2.parseDoc(docstr) 78 doc = libxml2.parseDoc(docstr) 139 libxml2.cleanupParser() 140 if libxml2.debugMemory(1) == 0: 143 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 144 libxml2.dumpMemory()
|
validRNG.py | 2 import libxml2 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...] |
pushSAX.py | 3 import libxml2 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 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()
|
readererr.py | 5 import libxml2 15 libxml2.debugMemory(1) 26 input = libxml2.inputBuffer(f) 51 libxml2.cleanupParser() 52 if libxml2.debugMemory(1) == 0: 55 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 56 libxml2.dumpMemory()
|
reader3.py | 6 import libxml2 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...] |
input_callback.py | 6 import libxml2 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...] |
readernext.py | 6 import libxml2 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()
|
indexes.py | 4 import libxml2 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()
|
serialize.py | 3 import libxml2 6 libxml2.debugMemory(1) 11 doc = libxml2.parseDoc("""<root><foo>hello</foo></root>""") 70 doc = libxml2.htmlParseDoc("""<html><head><title>Hello</title><body><p>hello</body></html>""", None) 145 libxml2.cleanupParser() 146 if libxml2.debugMemory(1) == 0: 149 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 150 libxml2.dumpMemory()
|
sync.py | 3 import libxml2 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...] |
reader.py | 6 import libxml2 16 libxml2.debugMemory(1) 19 input = libxml2.inputBuffer(f) 79 input = libxml2.inputBuffer(f) 101 input = libxml2.inputBuffer(f) 120 input = libxml2.inputBuffer(f) 249 input = libxml2.inputBuffer(f) 266 input = libxml2.inputBuffer(f) 286 input = libxml2.inputBuffer(f) 305 input = libxml2.inputBuffer(f [all...] |
/external/libxml2/xstc/ |
fixup-tests.py | 4 import libxml2 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/ |
check-relaxng-test-suite.py | 8 import libxml2 11 libxml2.debugMemory(1) 31 libxml2.lineNumbersDefault(1) 39 libxml2.registerErrorHandler(callback, "") 63 # res = libxml2.parseFile(RES) 83 doc = libxml2.parseDoc(instance) 124 doc = libxml2.parseDoc(instance) 164 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 190 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 222 # name = libxml2.buildURI(name, dir [all...] |
check-relaxng-test-suite2.py | 8 import libxml2 11 libxml2.debugMemory(1) 29 libxml2.lineNumbersDefault(1) 50 # res = libxml2.parseFile(RES) 71 # mem = libxml2.debugMemory(1); 73 doc = libxml2.parseDoc(instance) 95 # if mem != libxml2.debugMemory(1): 124 # mem = libxml2.debugMemory(1); 127 doc = libxml2.parseDoc(instance) 149 # mem2 = libxml2.debugMemory(1 [all...] |