/vbox/src/libs/libxml2-2.6.31/doc/examples/ |
H A D | io1.c | 105 xmlDocPtr doc; local 124 doc = xmlReadMemory(include, strlen(include), "include.xml", NULL, 0); 125 if (doc == NULL) { 134 if (xmlXIncludeProcess(doc) <= 0) { 143 xmlDocDump(stdout, doc); 149 xmlFreeDoc(doc);
|
H A D | parse4.c | 47 xmlDocPtr doc; /* the resulting document tree */ local 92 doc = ctxt->myDoc; 103 xmlFreeDoc(doc);
|
H A D | tree2.c | 28 xmlDocPtr doc = NULL; /* document pointer */ local 39 doc = xmlNewDoc(BAD_CAST "1.0"); 41 xmlDocSetRootElement(doc, root_node); 46 dtd = xmlCreateIntSubset(doc, BAD_CAST "root", NULL, BAD_CAST "tree2.dtd"); 96 xmlSaveFormatFileEnc(argc > 1 ? argv[1] : "-", doc, "UTF-8", 1); 99 xmlFreeDoc(doc);
|
H A D | xpath2.c | 86 xmlDocPtr doc; local 95 doc = xmlParseFile(filename); 96 if (doc == NULL) { 102 xpathCtx = xmlXPathNewContext(doc); 105 xmlFreeDoc(doc); 114 xmlFreeDoc(doc); 127 xmlDocDump(stdout, doc); 131 xmlFreeDoc(doc);
|
H A D | testWriter.c | 628 xmlDocPtr doc; local 632 writer = xmlNewTextWriterDoc(&doc, 0); 863 xmlSaveFileEnc(file, doc, MY_ENCODING); 865 xmlFreeDoc(doc); 879 xmlDocPtr doc; local 885 doc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION); 886 if (doc == NULL) { 894 node = xmlNewDocNode(doc, NULL, BAD_CAST "EXAMPLE", NULL); 901 xmlDocSetRootElement(doc, node); 904 writer = xmlNewTextWriterTree(doc, nod [all...] |
H A D | xpath1.c | 86 xmlDocPtr doc; local 94 doc = xmlParseFile(filename); 95 if (doc == NULL) { 101 xpathCtx = xmlXPathNewContext(doc); 104 xmlFreeDoc(doc); 112 xmlFreeDoc(doc); 121 xmlFreeDoc(doc); 131 xmlFreeDoc(doc);
|
/vbox/src/libs/libxml2-2.6.31/include/libxml/ |
H A D | debugXML.h | 53 xmlDocPtr doc); 56 xmlDocPtr doc); 62 xmlDocPtr doc); 72 xmlDocPtr doc); 115 xmlDocPtr doc; member in struct:_xmlShellCtxt 205 xmlShell (xmlDocPtr doc,
|
H A D | entities.h | 47 struct _xmlDoc *doc; /* the containing document */ member in struct:_xmlEntity 79 xmlAddDocEntity (xmlDocPtr doc, 86 xmlAddDtdEntity (xmlDocPtr doc, 95 xmlGetDocEntity (xmlDocPtr doc, 98 xmlGetDtdEntity (xmlDocPtr doc, 101 xmlGetParameterEntity (xmlDocPtr doc, 105 xmlEncodeEntities (xmlDocPtr doc, 109 xmlEncodeEntitiesReentrant(xmlDocPtr doc, 112 xmlEncodeSpecialChars (xmlDocPtr doc,
|
H A D | valid.h | 94 xmlDocPtr doc; /* the document */ member in struct:_xmlValidCtxt 183 /* the new versions with doc argument */ 185 xmlNewDocElementContent (xmlDocPtr doc, 189 xmlCopyDocElementContent(xmlDocPtr doc, 192 xmlFreeDocElementContent(xmlDocPtr doc, 269 xmlDocPtr doc, 275 xmlGetID (xmlDocPtr doc, 278 xmlIsID (xmlDocPtr doc, 282 xmlRemoveID (xmlDocPtr doc, 288 xmlDocPtr doc, [all...] |
/vbox/src/libs/libxml2-2.6.31/python/tests/ |
H A D | validDTD.py | 34 doc = libxml2.parseDoc(valid) variable 35 ret = doc.validateDtd(ctxt, dtd) 39 doc.freeDoc() 42 doc = libxml2.parseDoc(invalid) variable 43 ret = doc.validateDtd(ctxt, dtd) 46 doc.freeDoc()
|
H A D | validRNG.py | 49 doc = libxml2.parseDoc(valid) variable 50 ret = doc.relaxNGValidateDoc(ctxt) 54 doc.freeDoc() 57 doc = libxml2.parseDoc(invalid) variable 58 ret = doc.relaxNGValidateDoc(ctxt) 62 doc.freeDoc()
|
H A D | validSchemas.py | 56 doc = libxml2.parseDoc(valid) variable 57 ret = doc.schemaValidateDoc(ctxt_valid) 61 doc.freeDoc() 64 doc = libxml2.parseDoc(invalid) variable 65 ret = doc.schemaValidateDoc(ctxt_valid) 69 doc.freeDoc()
|
/vbox/src/libs/libxml2-2.6.31/ |
H A D | testRelax.c | 135 xmlDocPtr doc; local 137 doc = xmlReadFile(argv[i],NULL,0); 139 if (doc == NULL) { 150 ret = xmlRelaxNGValidateDoc(ctxt, doc); 160 xmlFreeDoc(doc);
|
H A D | testSchemas.c | 126 xmlDocPtr doc; local 128 doc = xmlReadFile(argv[i],NULL,0); 130 if (doc == NULL) { 141 ret = xmlSchemaValidateDoc(ctxt, doc); 151 xmlFreeDoc(doc);
|
H A D | xlink.c | 110 * @doc: the document containing the node 123 xlinkIsLink (xmlDocPtr doc, xmlNodePtr node) { argument 128 if (doc == NULL) doc = node->doc; 129 if ((doc != NULL) && (doc->type == XML_HTML_DOCUMENT_NODE)) { 157 xlink = xmlSearchNs(doc, node, XLINK_NAMESPACE);
|
H A D | testC14N.c | 54 xmlDocPtr doc; local 66 doc = xmlReadFile(xml_filename, NULL, XML_PARSE_DTDATTR | XML_PARSE_NOENT); 67 if (doc == NULL) { 75 if(xmlDocGetRootElement(doc) == NULL) { 77 xmlFreeDoc(doc); 85 xpath = load_xpath_expr(doc, xpath_filename); 88 xmlFreeDoc(doc); 97 ret = xmlC14NDocDumpMemory(doc, 109 xmlFreeDoc(doc); 117 xmlFreeDoc(doc); 228 xmlDocPtr doc; local [all...] |
H A D | HTMLtree.c | 41 * @doc: the document 48 htmlGetMetaEncoding(htmlDocPtr doc) { argument 53 if (doc == NULL) 55 cur = doc->children; 152 * @doc: the document 162 htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) { argument 168 if (doc == NULL) 177 cur = doc->children; 215 meta = xmlNewDocNode(doc, NULL, BAD_CAST"meta", NULL); 229 meta = xmlNewDocNode(doc, NUL 390 htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int format) argument 434 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) argument 455 htmlNodeDumpFileFormat(FILE *out, xmlDocPtr doc, xmlNodePtr cur, const char *encoding, int format) argument 504 htmlNodeDumpFile(FILE *out, xmlDocPtr doc, xmlNodePtr cur) argument 623 htmlDtdDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, const char *encoding ATTRIBUTE_UNUSED) argument 657 htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, const char *encoding ATTRIBUTE_UNUSED) argument 719 htmlAttrListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, const char *encoding) argument 742 htmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding, int format) argument 764 htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding, int format) argument 953 htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding) argument [all...] |
H A D | entities.c | 101 if (entity->doc != NULL) 102 dict = entity->doc->dict; 156 if (dtd->doc != NULL) 157 dict = dtd->doc->dict; 219 ret->doc = dtd->doc; 269 * @doc: the document 281 xmlAddDtdEntity(xmlDocPtr doc, const xmlChar *name, int type, argument 287 if (doc == NULL) { 292 if (doc 330 xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type, const xmlChar *ExternalID, const xmlChar *SystemID, const xmlChar *content) argument 392 xmlGetParameterEntity(xmlDocPtr doc, const xmlChar *name) argument 423 xmlGetDtdEntity(xmlDocPtr doc, const xmlChar *name) argument 447 xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) argument 498 xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) argument [all...] |
H A D | gentest.py | 219 "if (doc == NULL) { xmlFreeNode(root) ; root = NULL ; }", 238 """xmlFreeDocElementContent(doc, ret_val); ret_val = NULL;""", 499 doc = libxml2.readFile(srcPref + 'doc/libxml2-api.xml', None, 0) variable 500 if doc == None: 501 print "Failed to load doc/libxml2-api.xml" 503 ctxt = doc.xpathNewContext()
|
H A D | runsuite.c | 255 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL)) 257 ctxtXPath->doc = cur->doc; 283 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL)) 285 ctxtXPath->doc = cur->doc; 340 xmlNodeDump(buf, test->doc, test, 0, 0); 380 xmlNodeDump(buf, tst->doc, tst, 0, 0); 386 xmlNodeDump(buf, test->doc, test, 0, 0); 434 xmlDocPtr doc local 626 xmlChar *doc = getString(cur, "string(documentation)"); local 644 xmlDocPtr doc; local 683 xmlChar *doc = getString(cur, "string(documentation)"); local 707 xmlDocPtr doc; local 745 xmlDocPtr doc; local 794 xmlDocPtr doc = NULL; local 1009 xmlDocPtr doc; local [all...] |
H A D | testHTML.c | 621 htmlDocPtr doc = NULL; local 650 doc = ctxt->myDoc; 653 if (doc != NULL) { 655 xmlFreeDoc(doc); 680 doc = ctxt->myDoc; 683 if (doc != NULL) { 685 xmlFreeDoc(doc); 692 doc = htmlSAXParseFile(filename, NULL, emptySAXHandler, NULL); 693 if (doc != NULL) { 695 xmlFreeDoc(doc); 715 htmlDocPtr doc = NULL; local [all...] |
H A D | SAX2.c | 949 xmlDocPtr doc; local 974 doc = ctxt->myDoc = xmlNewDoc(ctxt->version); 975 if (doc != NULL) { 977 doc->encoding = xmlStrdup(ctxt->encoding); 979 doc->encoding = NULL; 980 doc->standalone = ctxt->standalone; 985 if ((ctxt->dictNames) && (doc != NULL)) { 986 doc->dict = ctxt->dict; 987 xmlDictReference(doc->dict); 1919 ret->doc [all...] |
H A D | c14n.c | 53 xmlDocPtr doc; member in struct:_xmlC14NCtx 621 tmp = xmlSearchNs(cur->doc, cur, ns->prefix); 751 ns = xmlSearchNs(cur->doc, cur, prefix); 771 ns = xmlSearchNs(cur->doc, cur, NULL); 928 value = xmlNodeListGetString(attr->doc, attr->children, 1); 1455 * @doc: the XML document for canonization 1474 xmlC14NNewCtx(xmlDocPtr doc, argument 1481 if ((doc == NULL) || (buf == NULL)) { 1490 xmlC14NErr(ctx, (xmlNodePtr) doc, XML_C14N_REQUIRES_UTF8, 1498 if (doc 1569 xmlC14NExecute(xmlDocPtr doc, xmlC14NIsVisibleCallback is_visible_callback, void* user_data, int exclusive, xmlChar **inclusive_ns_prefixes, int with_comments, xmlOutputBufferPtr buf) argument 1658 xmlC14NDocSaveTo(xmlDocPtr doc, xmlNodeSetPtr nodes, int exclusive, xmlChar ** inclusive_ns_prefixes, int with_comments, xmlOutputBufferPtr buf) argument 1694 xmlC14NDocDumpMemory(xmlDocPtr doc, xmlNodeSetPtr nodes, int exclusive, xmlChar ** inclusive_ns_prefixes, int with_comments, xmlChar ** doc_txt_ptr) argument 1766 xmlC14NDocSave(xmlDocPtr doc, xmlNodeSetPtr nodes, int exclusive, xmlChar ** inclusive_ns_prefixes, int with_comments, const char *filename, int compression) argument [all...] |
/vbox/src/libs/libxml2-2.6.31/example/ |
H A D | gjobread.c | 46 parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { argument 66 ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 69 ret->email = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 109 parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { argument 137 xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 141 xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 144 ret->contact = parsePerson(doc, ns, cur); 181 xmlDocPtr doc; local 191 doc = xmlParseFile(filename); 192 if (doc [all...] |
/vbox/src/libs/libxml2-2.6.31/python/ |
H A D | types.c | 152 libxml_xmlDocPtrWrap(xmlDocPtr doc) argument 157 printf("libxml_xmlDocPtrWrap: doc = %p\n", doc); 159 if (doc == NULL) { 165 PyCObject_FromVoidPtrAndDesc((void *) doc, (char *) "xmlDocPtr",
|