/vbox/src/libs/libxml2-2.6.31/doc/examples/ |
H A D | io2.c | 20 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 D | parse1.c | 24 xmlDocPtr doc; /* the resulting document tree */ local 26 doc = xmlReadFile(filename, NULL, 0); 27 if (doc == NULL) { 31 xmlFreeDoc(doc);
|
H A D | parse2.c | 26 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 D | parse3.c | 16 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 D | reader3.c | 26 * 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 D | tree1.c | 53 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 D | attribs.py | 11 doc = libxml2.parseDoc( variable 20 elem = doc.getRootElement() 26 doc.freeDoc()
|
H A D | tst.py | 8 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 D | ctxterror.py | 29 doc = parserCtxt.doc() variable 30 doc.freeDoc() 44 doc = parserCtxt.doc() variable 45 doc.freeDoc()
|
H A D | dtdvalid.py | 14 doc = libxml2.parseDoc(instance) variable 15 ret = doc.validateDtd(ctxt, dtd) 20 doc.freeDoc()
|
H A D | push.py | 10 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 D | relaxng.py | 29 doc = libxml2.parseDoc(instance) variable 30 ret = doc.relaxNGValidateDoc(ctxt) 35 doc.freeDoc()
|
H A D | resolver.py | 14 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 D | schema.py | 33 doc = libxml2.parseDoc(instance) variable 34 ret = doc.schemaValidateDoc(ctxt_valid) 39 doc.freeDoc()
|
H A D | xpath.py | 12 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 D | build.py | 8 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 D | error.py | 22 doc = libxml2.parseFile("missing.xml") variable 39 doc = libxml2.parseFile("missing.xml") variable
|
H A D | nsdel.py | 28 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 D | outbuf.py | 28 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 D | tstmem.py | 19 doc = libxml2.parseDoc(instance) variable 20 ret = doc.validateDtd(ctxt, dtd) 25 doc.freeDoc()
|
H A D | tstxpath.py | 24 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 D | validate.py | 11 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 D | walker.py | 40 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 D | xpathext.py | 14 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 D | xpathret.py | 25 doc = libxml2.parseFile("tst.xml") variable 26 ctxt = doc.xpathNewContext() 47 doc.freeDoc()
|