• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:doc

45     xmlDocPtr doc;              /* current document */
47 xmlDictPtr dict; /* the doc dictionnary */
65 ctxt->doc = NULL;
272 xmlDocPtr doc;
275 doc = node->doc;
280 if (node->doc == NULL) {
282 "Node has no doc\n");
285 dict = doc->dict;
289 if (doc->type == XML_DOCUMENT_NODE)
295 if (ctxt->doc == NULL)
296 ctxt->doc = doc;
302 if ((node->parent != NULL) && (node->doc != node->parent->doc) &&
305 "Node doc differs from parent's one\n");
1015 if (node->doc == NULL) {
1019 fprintf(ctxt->output, "PBM: doc == NULL !!!\n");
1038 ent = xmlGetDocEntity(node->doc, node->name);
1095 xmlCtxtDumpDocHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1097 if (doc == NULL) {
1102 ctxt->node = (xmlNodePtr) doc;
1104 switch (doc->type) {
1159 "Unknown node type %d\n", doc->type);
1166 * @doc: the document
1171 xmlCtxtDumpDocumentHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1173 if (doc == NULL) return;
1174 xmlCtxtDumpDocHead(ctxt, doc);
1176 if (doc->name != NULL) {
1178 xmlCtxtDumpString(ctxt, BAD_CAST doc->name);
1181 if (doc->version != NULL) {
1183 xmlCtxtDumpString(ctxt, doc->version);
1186 if (doc->encoding != NULL) {
1188 xmlCtxtDumpString(ctxt, doc->encoding);
1191 if (doc->URL != NULL) {
1193 xmlCtxtDumpString(ctxt, doc->URL);
1196 if (doc->standalone)
1199 if (doc->oldNs != NULL)
1200 xmlCtxtDumpNamespaceList(ctxt, doc->oldNs);
1206 * @doc: the document
1211 xmlCtxtDumpDocument(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1213 if (doc == NULL) {
1218 xmlCtxtDumpDocumentHead(ctxt, doc);
1219 if (((doc->type == XML_DOCUMENT_NODE) ||
1220 (doc->type == XML_HTML_DOCUMENT_NODE))
1221 && (doc->children != NULL)) {
1223 xmlCtxtDumpNodeList(ctxt, doc->children);
1274 * @doc: the document
1279 xmlCtxtDumpEntities(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1281 if (doc == NULL) return;
1282 xmlCtxtDumpDocHead(ctxt, doc);
1283 if ((doc->intSubset != NULL) && (doc->intSubset->entities != NULL)) {
1285 doc->intSubset->entities;
1293 if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) {
1295 doc->extSubset->entities;
1390 * @doc: the document
1395 xmlDebugDumpEntities(FILE * output, xmlDocPtr doc)
1402 xmlCtxtDumpEntities(&ctxt, doc);
1495 * @doc: the document
1500 xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc)
1509 xmlCtxtDumpDocumentHead(&ctxt, doc);
1516 * @doc: the document
1521 xmlDebugDumpDocument(FILE * output, xmlDocPtr doc)
1530 xmlCtxtDumpDocument(&ctxt, doc);
1564 * @doc: the document
1572 xmlDebugCheckDocument(FILE * output, xmlDocPtr doc)
1581 xmlCtxtDumpDocument(&ctxt, doc);
1900 xmlElemDump(fp, node->doc, node);
2053 base = xmlNodeGetBase(node->doc, node);
2375 ret = xmlRelaxNGValidateDoc(vctxt, sctxt->doc);
2414 if (ctxt->doc->type == XML_HTML_DOCUMENT_NODE) {
2419 htmlNodeDumpFile(ctxt->output, ctxt->doc, node);
2424 xmlElemDump(ctxt->output, ctxt->doc, node);
2430 xmlElemDump(ctxt->output, ctxt->doc, node);
2454 xmlDocPtr doc;
2458 if (ctxt->doc != NULL)
2459 html = (ctxt->doc->type == XML_HTML_DOCUMENT_NODE);
2463 doc = htmlParseFile(filename, NULL);
2466 doc = NULL;
2469 doc = xmlReadFile(filename,NULL,0);
2471 if (doc != NULL) {
2473 xmlFreeDoc(ctxt->doc);
2480 ctxt->doc = doc;
2481 ctxt->node = (xmlNodePtr) doc;
2483 ctxt->pctxt = xmlXPathNewContext(doc);
2523 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2531 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2537 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2553 xmlElemDump(f, ctxt->doc, node);
2577 if ((ctxt == NULL) || (ctxt->doc == NULL))
2590 switch (ctxt->doc->type) {
2592 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2599 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2604 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2642 if ((ctxt == NULL) || (ctxt->doc == NULL)) return(-1);
2648 res = xmlValidateDocument(&vctxt, ctxt->doc);
2654 res = xmlValidateDtd(&vctxt, ctxt->doc, subset);
2789 * @doc: the initial document
2799 xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
2811 if (doc == NULL)
2823 ctxt->doc = doc;
2827 ctxt->node = (xmlNodePtr) ctxt->doc;
2830 ctxt->pctxt = xmlXPathNewContext(ctxt->doc);
2837 if (ctxt->node == (xmlNodePtr) ctxt->doc)
2982 root = xmlDocGetRootElement(ctxt->doc);
3086 ctxt->node = (xmlNodePtr) ctxt->doc;
3254 xmlFreeDoc(ctxt->doc);