/vbox/src/libs/libxml2-2.6.31/python/tests/ |
H A D | 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()
|
H A D | reader4.py | 5 import libxml2 namespace 10 libxml2.debugMemory(1) 14 input = libxml2.inputBuffer(f) 40 libxml2.cleanupParser() 41 if libxml2.debugMemory(1) == 0: 44 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 45 libxml2.dumpMemory()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | reader8.py | 7 import libxml2 namespace 10 libxml2.debugMemory(1) 20 reader = libxml2.readerForDoc(docstr, "test1", None, 0) 32 libxml2.cleanupParser() 33 if libxml2.debugMemory(1) == 0: 36 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 37 libxml2.dumpMemory()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | inbuf.py | 3 import libxml2 namespace 7 libxml2.debugMemory(1) 12 buf = libxml2.inputBuffer(f) 19 libxml2.cleanupParser() 20 if libxml2.debugMemory(1) == 0: 23 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 24 libxml2.dumpMemory()
|
H A D | 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()
|
H A D | reader7.py | 7 import libxml2 namespace 10 libxml2.debugMemory(1) 40 reader = libxml2.readerForDoc(docstr, "test1", None, 0) 97 libxml2.cleanupParser() 98 if libxml2.debugMemory(1) == 0: 101 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 102 libxml2.dumpMemory()
|
H A D | readererr.py | 5 import libxml2 namespace 10 libxml2.debugMemory(1) 21 input = libxml2.inputBuffer(f) 46 libxml2.cleanupParser() 47 if libxml2.debugMemory(1) == 0: 50 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 51 libxml2.dumpMemory()
|
H A D | readernext.py | 6 import libxml2 namespace 11 libxml2.debugMemory(1) 14 input = libxml2.inputBuffer(f) 76 libxml2.cleanupParser() 77 if libxml2.debugMemory(1) == 0: 80 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 81 libxml2.dumpMemory()
|
H A D | 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()
|
H A D | resolver.py | 3 import libxml2 namespace 7 libxml2.debugMemory(1) 12 libxml2.setEntityLoader(myResolver) 14 doc = libxml2.parseFile("doesnotexist.xml") 23 doc = libxml2.parseFile("doesnotexist.xml") 33 libxml2.cleanupParser() 34 if libxml2.debugMemory(1) == 0: 37 print "Memory leak %d bytes" % (libxml2.debugMemory(1)) 38 libxml2.dumpMemory()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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 [all...] |
H A D | 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()
|
H A D | outbuf.py | 3 import libxml2 namespace 8 buf = libxml2.createOutputBuffer(f, "ISO-8859-1") 27 buf = libxml2.createOutputBuffer(f, 'UTF-8') 28 doc = libxml2.parseDoc(input) 50 doc = libxml2.parseDoc(input) 53 buf = libxml2.createOutputBuffer(f, 'UTF-8') 73 doc = libxml2.parseDoc(input) 74 buf = libxml2.createOutputBuffer(f, 'UTF-8') 82 buf = libxml2.createOutputBuffer(f, 'UTF-8') 93 libxml2 [all...] |
H A D | reader.py | 6 import libxml2 namespace 11 libxml2.debugMemory(1) 14 input = libxml2.inputBuffer(f) 74 input = libxml2.inputBuffer(f) 96 input = libxml2.inputBuffer(f) 115 input = libxml2.inputBuffer(f) 244 input = libxml2.inputBuffer(f) 261 input = libxml2.inputBuffer(f) 281 input = libxml2.inputBuffer(f) 300 input = libxml2 [all...] |