/external/libxml2/python/tests/ |
regexp.py | 2 import libxml2 namespace 5 libxml2.debugMemory(1) 7 re = libxml2.regexpCompile("a|b") 27 libxml2.cleanupParser() 28 if libxml2.debugMemory(1) == 0: 31 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 32 libxml2.dumpMemory()
|
reader8.py | 6 import libxml2 namespace 9 libxml2.debugMemory(1) 19 reader = libxml2.readerForDoc(docstr, "test1", None, 0) 31 libxml2.cleanupParser() 32 if libxml2.debugMemory(1) == 0: 35 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 36 libxml2.dumpMemory()
|
serialize.py | 3 import libxml2 namespace 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()
|
tstURI.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 8 uri = libxml2.parseURI("http://example.org:8088/foo/bar?query=simple#fragid") 36 libxml2.cleanupParser() 37 if libxml2.debugMemory(1) == 0: 40 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 41 libxml2.dumpMemory()
|
xpathns.py | 3 import libxml2 namespace 8 libxml2.debugMemory(1) 10 d = libxml2.parseDoc("<a:a xmlns:a='urn:whatevar'/>") 23 libxml2.cleanupParser() 25 if libxml2.debugMemory(1) == 0: 28 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 29 libxml2.dumpMemory()
|
attribs.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 11 doc = libxml2.parseDoc( 29 libxml2.cleanupParser() 30 if libxml2.debugMemory(1) == 0: 33 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 34 libxml2.dumpMemory()
|
compareNodes.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 11 doc = libxml2.parseDoc("""<root><foo/></root>""") 45 libxml2.cleanupParser() 46 if libxml2.debugMemory(1) == 0: 49 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 50 libxml2.dumpMemory()
|
cutnpaste.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 11 source = libxml2.parseDoc("""<?xml version="1.0"?> 20 target = libxml2.parseDoc("""<?xml version="1.0"?> 43 libxml2.cleanupParser() 44 if libxml2.debugMemory(1) == 0: 47 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 48 libxml2.dumpMemory()
|
tst.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 8 doc = libxml2.parseFile("tst.xml") 23 libxml2.cleanupParser() 24 if libxml2.debugMemory(1) == 0: 27 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 28 libxml2.dumpMemory()
|
ctxterror.py | 7 import libxml2 namespace 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()
|
dtdvalid.py | 2 import libxml2 namespace 6 libxml2.debugMemory(1) 12 dtd = libxml2.parseDTD(None, 'test.dtd') 13 ctxt = libxml2.newValidCtxt() 14 doc = libxml2.parseDoc(instance) 26 libxml2.cleanupParser() 27 if libxml2.debugMemory(1) == 0: 30 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 31 libxml2.dumpMemory()
|
push.py | 3 import libxml2 namespace 6 libxml2.debugMemory(1) 8 ctxt = libxml2.createPushParser(None, "<foo", 4, "test.xml") 22 ctxt = libxml2.createPushParser(None, "<foo", 4, "test.xml") 30 libxml2.cleanupParser() 31 if libxml2.debugMemory(1) == 0: 34 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 35 libxml2.dumpMemory()
|
reader4.py | 5 import libxml2 namespace 15 libxml2.debugMemory(1) 19 input = libxml2.inputBuffer(f) 45 libxml2.cleanupParser() 46 if libxml2.debugMemory(1) == 0: 49 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 50 libxml2.dumpMemory()
|
reader5.py | 6 import libxml2 namespace 10 libxml2.debugMemory(1) 18 input = libxml2.inputBuffer(f) 42 libxml2.cleanupParser() 43 if libxml2.debugMemory(1) == 0: 46 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 47 libxml2.dumpMemory()
|
reader7.py | 6 import libxml2 namespace 9 libxml2.debugMemory(1) 39 reader = libxml2.readerForDoc(docstr, "test1", None, 0) 96 libxml2.cleanupParser() 97 if libxml2.debugMemory(1) == 0: 100 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 101 libxml2.dumpMemory()
|
relaxng.py | 2 import libxml2 namespace 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()
|
schema.py | 2 import libxml2 namespace 6 libxml2.debugMemory(1) 30 ctxt_parser = libxml2.schemaNewMemParserCtxt(schema, len(schema)) 33 doc = libxml2.parseDoc(instance) 43 libxml2.schemaCleanupTypes() 46 libxml2.cleanupParser() 47 if libxml2.debugMemory(1) == 0: 50 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 51 libxml2.dumpMemory()
|
walker.py | 6 import libxml2 namespace 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()
|
xpath.py | 7 import libxml2 namespace 10 libxml2.debugMemory(1) 12 doc = libxml2.parseFile("tst.xml") 37 doc = libxml2.parseFile("tst.xml") 46 libxml2.cleanupParser() 47 if libxml2.debugMemory(1) == 0: 50 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 51 libxml2.dumpMemory()
|
build.py | 2 import libxml2 namespace 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()
|
error.py | 7 import libxml2 namespace 10 libxml2.debugMemory(1) 20 libxml2.registerErrorHandler(callback, "-->") 22 doc = libxml2.parseFile("missing.xml") 23 except libxml2.parserError: 39 doc = libxml2.parseFile("missing.xml") 40 except libxml2.parserError: 46 libxml2.cleanupParser() 47 if libxml2.debugMemory(1) == 0: 50 print("Memory leak %d bytes" % (libxml2.debugMemory(1)) [all...] |
inbuf.py | 3 import libxml2 namespace 12 libxml2.debugMemory(1) 17 buf = libxml2.inputBuffer(f) 24 libxml2.cleanupParser() 25 if libxml2.debugMemory(1) == 0: 28 print("Memory leak %d bytes" % (libxml2.debugMemory(1))) 29 libxml2.dumpMemory()
|
nsdel.py | 7 import libxml2 namespace 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()
|
reader.py | 6 import libxml2 namespace 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...] |
readererr.py | 5 import libxml2 namespace 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()
|