Searched defs:libxml2 (Results 26 - 50 of 54) sorted by relevance

123

/vbox/src/libs/libxml2-2.6.31/python/tests/
H A Dreader3.py7 import libxml2 namespace
16 libxml2.debugMemory(1)
22 input = libxml2.inputBuffer(f)
59 input = libxml2.inputBuffer(f)
61 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES, 1)
128 libxml2.setEntityLoader(myResolver)
130 input = libxml2.inputBuffer(StringIO.StringIO(s))
132 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
150 libxml2.cleanupParser()
151 if libxml2
[all...]
H A Dreader5.py6 import libxml2 namespace
11 libxml2.debugMemory(1)
19 input = libxml2.inputBuffer(f)
43 libxml2.cleanupParser()
44 if libxml2.debugMemory(1) == 0:
47 print "Memory leak %d bytes" % (libxml2.debugMemory(1))
48 libxml2.dumpMemory()
H A Dtstmem.py2 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()
H A Dtstxpath.py3 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
[all...]
H A Dvalidate.py3 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
[all...]
H A Dwalker.py7 import libxml2 namespace
10 libxml2.debugMemory(1)
40 doc = libxml2.parseDoc(docstr)
79 doc = libxml2.parseDoc(docstr)
140 libxml2.cleanupParser()
141 if libxml2.debugMemory(1) == 0:
144 print "Memory leak %d bytes" % (libxml2.debugMemory(1))
145 libxml2.dumpMemory()
H A Dxpathext.py3 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()
H A Dxpathret.py3 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()
H A Dindexes.py4 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()
H A DpushSAX.py3 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()
H A DpushSAXhtml.py3 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()
H A Dreader2.py9 import libxml2 namespace
12 libxml2.debugMemory(1)
28 libxml2.registerErrorHandler(callback, "")
35 reader = libxml2.newTextReaderFilename(file)
37 reader.SetParserProp(libxml2.PARSER_VALIDATE, 1)
82 input = libxml2.inputBuffer(StringIO.StringIO(s))
84 reader.SetParserProp(libxml2.PARSER_LOADDTD,1)
85 reader.SetParserProp(libxml2.PARSER_DEFAULTATTRS,1)
86 reader.SetParserProp(libxml2.PARSER_SUBST_ENTITIES,1)
87 reader.SetParserProp(libxml2
[all...]
H A Dreader6.py7 import libxml2 namespace
27 libxml2.debugMemory(1)
32 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema))
45 input = libxml2.inputBuffer(f)
85 libxml2.registerErrorHandler(callback, "")
88 input = libxml2.inputBuffer(f)
115 libxml2.relaxNGCleanupTypes()
118 libxml2.cleanupParser()
119 if libxml2.debugMemory(1) == 0:
122 print "Memory leak %d bytes" % (libxml2
[all...]
H A Dsync.py3 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")
95 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml")
107 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml")
119 ctxt = libxml2.createPushParser(handler, None, 0, "test.xml")
130 libxml2
[all...]
H A DtstLastError.py4 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
[all...]
H A DvalidDTD.py2 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
[all...]
H A DvalidRNG.py2 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
[all...]
H A DvalidSchemas.py2 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
[all...]
H A Dthread2.py6 import libxml2 namespace
24 old = libxml2.lineNumbersDefault(0)
25 libxml2.lineNumbersDefault(old)
39 doc = libxml2.parseFile("bad.xml")
47 libxml2.registerErrorHandler(eh.handler,"")
50 libxml2.lineNumbersDefault(1)
72 libxml2.thrDefLineNumbersDefaultValue(1)
91 libxml2.cleanupParser()
92 if libxml2.debugMemory(1) == 0:
95 print "Memory leak %d bytes" % (libxml2
[all...]
/vbox/src/libs/libxml2-2.6.31/
H A Dregressions.py4 import libxml2 namespace
20 # Note that this current version requires the Python bindings for libxml2 to
331 reader = libxml2.newTextReaderFilename(filename)
H A Dcheck-xinclude-test-suite.py7 import libxml2 namespace
42 libxml2.registerErrorHandler(errorHandler, None)
109 doc = libxml2.parseFile(URI)
179 base = libxml2.buildURI(basedir, base)
188 conf = libxml2.parseFile(CONF)
H A Dcheck-relaxng-test-suite.py8 import libxml2 namespace
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
[all...]
H A Dcheck-relaxng-test-suite2.py8 import libxml2 namespace
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
[all...]
H A Dcheck-xml-test-suite.py7 import libxml2 namespace
38 libxml2.registerErrorHandler(errorHandler, None)
49 #libxml2.registerWarningHandler(warningHandler, None)
55 ctxt = libxml2.createFileParserCtxt(filename)
81 ctxt = libxml2.createFileParserCtxt(filename)
106 ctxt = libxml2.createFileParserCtxt(filename)
132 ctxt = libxml2.createFileParserCtxt(filename)
159 ctxt = libxml2.createFileParserCtxt(filename)
192 ctxt = libxml2.createFileParserCtxt(filename)
223 ctxt = libxml2
[all...]
/vbox/src/libs/libxml2-2.6.31/doc/examples/
H A Dindex.py9 import libxml2 namespace
31 print "loading ../libxml2-api.xml"
32 api_doc = libxml2.parseFile("../libxml2-api.xml")
34 print "failed to parse ../libxml2-api.xml"
225 DEPS = $(top_builddir)/libxml2.la
226 LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@

Completed in 68 milliseconds

123