Searched defs:doc (Results 1 - 25 of 81) sorted by relevance

1234

/vbox/src/libs/libxml2-2.6.31/doc/examples/
H A Dio2.c20 xmlDocPtr doc; local
27 doc = xmlNewDoc(BAD_CAST "1.0");
30 xmlDocSetRootElement(doc, n);
36 xmlDocDumpFormatMemory(doc, &xmlbuff, &buffersize, 1);
43 xmlFreeDoc(doc);
H A Dparse1.c24 xmlDocPtr doc; /* the resulting document tree */ local
26 doc = xmlReadFile(filename, NULL, 0);
27 if (doc == NULL) {
31 xmlFreeDoc(doc);
H A Dparse2.c26 xmlDocPtr doc; /* the resulting document tree */ local
35 doc = xmlCtxtReadFile(ctxt, filename, NULL, XML_PARSE_DTDVALID);
37 if (doc == NULL) {
44 xmlFreeDoc(doc);
H A Dparse3.c16 static const char *document = "<doc/>";
27 xmlDocPtr doc; /* the resulting document tree */ local
33 doc = xmlReadMemory(content, length, "noname.xml", NULL, 0);
34 if (doc == NULL) {
38 xmlFreeDoc(doc);
H A Dreader3.c26 * Returns the resulting doc with just the elements preserved.
30 xmlDocPtr doc; local
61 doc = xmlTextReaderCurrentDoc(reader);
70 return(doc);
76 xmlDocPtr doc; local
90 doc = extractFile(filename, (const xmlChar *) pattern); local
91 if (doc != NULL) {
95 xmlDocDump(stdout, doc);
97 * don't forget to free up the doc
99 xmlFreeDoc(doc);
[all...]
H A Dtree1.c53 xmlDoc *doc = NULL; local
67 doc = xmlReadFile(argv[1], NULL, 0);
69 if (doc == NULL) {
74 root_element = xmlDocGetRootElement(doc);
79 xmlFreeDoc(doc);
/vbox/src/libs/libxml2-2.6.31/python/tests/
H A Dattribs.py11 doc = libxml2.parseDoc( variable
20 elem = doc.getRootElement()
26 doc.freeDoc()
H A Dtst.py8 doc = libxml2.parseFile("tst.xml") variable
9 if doc.name != "tst.xml":
10 print "doc.name failed"
12 root = doc.children
13 if root.name != "doc":
20 doc.freeDoc()
H A Dctxterror.py29 doc = parserCtxt.doc() variable
30 doc.freeDoc()
44 doc = parserCtxt.doc() variable
45 doc.freeDoc()
H A Ddtdvalid.py14 doc = libxml2.parseDoc(instance) variable
15 ret = doc.validateDtd(ctxt, dtd)
20 doc.freeDoc()
H A Dpush.py10 doc = ctxt.doc() variable
12 if doc.name != "test.xml":
15 root = doc.children
19 doc.freeDoc()
24 doc = ctxt.doc() variable
25 doc.freeDoc()
H A Drelaxng.py29 doc = libxml2.parseDoc(instance) variable
30 ret = doc.relaxNGValidateDoc(ctxt)
35 doc.freeDoc()
H A Dresolver.py14 doc = libxml2.parseFile("doesnotexist.xml") variable
15 root = doc.children
19 doc.freeDoc()
23 doc = libxml2.parseFile("doesnotexist.xml")
24 root = doc.children
28 doc.freeDoc()
H A Dschema.py33 doc = libxml2.parseDoc(instance) variable
34 ret = doc.schemaValidateDoc(ctxt_valid)
39 doc.freeDoc()
H A Dxpath.py12 doc = libxml2.parseFile("tst.xml") variable
13 if doc.name != "tst.xml":
14 print "doc.name error"
17 ctxt = doc.xpathNewContext()
22 if res[0].name != "doc" or res[1].name != "foo":
33 doc.freeDoc()
37 doc = libxml2.parseFile("tst.xml") variable
38 ctxt = doc.xpathNewContext()
40 doc.freeDoc()
H A Dbuild.py8 doc = libxml2.newDoc("1.0") variable
9 comment = doc.newDocComment("This is a generated document")
10 doc.addChild(comment)
12 doc.addChild(pi)
13 root = doc.newChild(None, "doc", None)
14 ns = root.newNs("http://example.com/doc", "my")
19 doc.saveFile("tmp.xml")
20 doc.freeDoc()
22 doc variable
[all...]
H A Derror.py22 doc = libxml2.parseFile("missing.xml") variable
39 doc = libxml2.parseFile("missing.xml") variable
H A Dnsdel.py28 doc = libxml2.parseDoc(instance) variable
29 node = doc.getRootElement()
34 doc.freeDoc()
37 doc = libxml2.parseDoc(instance) variable
38 node = doc.getRootElement()
43 doc.freeDoc()
46 doc = libxml2.newDoc("1.0") variable
47 root = doc.newChild(None, "root", None)
51 doc.reconciliateNs(root)
53 doc
[all...]
H A Doutbuf.py28 doc = libxml2.parseDoc(input) variable
29 doc.saveFileTo(buf, 'UTF-8')
30 doc.freeDoc()
50 doc = libxml2.parseDoc(input) variable
54 doc.saveFormatFileTo(buf, 'UTF-8', i)
60 doc.freeDoc()
73 doc = libxml2.parseDoc(input) variable
75 buf.saveFileTo(doc, 'UTF-8')
83 buf.saveFormatFileTo(doc, 'UTF-8', 1)
89 doc
[all...]
H A Dtstmem.py19 doc = libxml2.parseDoc(instance) variable
20 ret = doc.validateDtd(ctxt, dtd)
25 doc.freeDoc()
H A Dtstxpath.py24 doc = libxml2.parseFile("tst.xml") variable
25 ctxt = doc.xpathNewContext()
30 if res[0].name != "doc" or res[1].name != "foo":
49 doc.freeDoc()
H A Dvalidate.py11 doc = ctxt.doc() variable
14 if doc.name != "valid.xml":
15 print "doc.name failed"
17 root = doc.children
18 if root.name != "doc":
24 doc.freeDoc()
31 doc = ctxt.doc() variable
33 doc
48 doc = ctxt.doc() variable
[all...]
H A Dwalker.py40 doc = libxml2.parseDoc(docstr) variable
41 reader = doc.readerWalker();
56 doc.freeDoc()
79 doc = libxml2.parseDoc(docstr) variable
80 reader.NewWalker(doc)
96 doc.freeDoc()
H A Dxpathext.py14 doc = libxml2.parseFile("tst.xml") variable
15 ctxt = doc.xpathNewContext()
20 if res[0].name != "doc" or res[1].name != "foo":
40 doc.freeDoc()
H A Dxpathret.py25 doc = libxml2.parseFile("tst.xml") variable
26 ctxt = doc.xpathNewContext()
47 doc.freeDoc()

Completed in 66 milliseconds

1234