HomeSort by relevance Sort by last modified time
    Searched refs:libxml2 (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/libxml2/python/tests/
regexp.py 2 import libxml2
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()
attribs.py 3 import libxml2
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()
inbuf.py 3 import libxml2
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()
reader8.py 6 import libxml2
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()
tst.py 3 import libxml2
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()
xpathns.py 3 import libxml2
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()
dtdvalid.py 2 import libxml2
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()
tstmem.py 2 import libxml2
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()
push.py 3 import libxml2
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()
error.py 7 import libxml2
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...]
compareNodes.py 3 import libxml2
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()
reader5.py 6 import libxml2
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()
tstURI.py 3 import libxml2
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()
resolver.py 3 import libxml2
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()
schema.py 2 import libxml2
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()
xpathext.py 3 import libxml2
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()
xpathret.py 3 import libxml2
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()
tstLastError.py 4 import libxml2
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...]
cutnpaste.py 3 import libxml2
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()
xpath.py 7 import libxml2
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()
xpathleak.py 2 import sys, libxml2
4 libxml2.debugMemory(True)
23 libxml2.registerErrorHandler(callback, "-->")
25 doc = libxml2.parseDoc("<fish/>")
35 except libxml2.xpathError:
48 libxml2.cleanupParser()
49 leakedbytes = libxml2.debugMemory(True)
55 libxml2.dumpMemory()
validate.py 3 import libxml2
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...]
reader4.py 5 import libxml2
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()
reader7.py 6 import libxml2
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()
outbuf.py 3 import libxml2
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...]

Completed in 122 milliseconds

1 2 3