• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

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");
1014 if (node->doc == NULL) {
1018 fprintf(ctxt->output, "PBM: doc == NULL !!!\n");
1037 ent = xmlGetDocEntity(node->doc, node->name);
1094 xmlCtxtDumpDocHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1096 if (doc == NULL) {
1101 ctxt->node = (xmlNodePtr) doc;
1103 switch (doc->type) {
1158 "Unknown node type %d\n", doc->type);
1165 * @doc: the document
1170 xmlCtxtDumpDocumentHead(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1172 if (doc == NULL) return;
1173 xmlCtxtDumpDocHead(ctxt, doc);
1175 if (doc->name != NULL) {
1177 xmlCtxtDumpString(ctxt, BAD_CAST doc->name);
1180 if (doc->version != NULL) {
1182 xmlCtxtDumpString(ctxt, doc->version);
1185 if (doc->encoding != NULL) {
1187 xmlCtxtDumpString(ctxt, doc->encoding);
1190 if (doc->URL != NULL) {
1192 xmlCtxtDumpString(ctxt, doc->URL);
1195 if (doc->standalone)
1198 if (doc->oldNs != NULL)
1199 xmlCtxtDumpNamespaceList(ctxt, doc->oldNs);
1205 * @doc: the document
1210 xmlCtxtDumpDocument(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1212 if (doc == NULL) {
1217 xmlCtxtDumpDocumentHead(ctxt, doc);
1218 if (((doc->type == XML_DOCUMENT_NODE) ||
1219 (doc->type == XML_HTML_DOCUMENT_NODE))
1220 && (doc->children != NULL)) {
1222 xmlCtxtDumpNodeList(ctxt, doc->children);
1273 * @doc: the document
1278 xmlCtxtDumpEntities(xmlDebugCtxtPtr ctxt, xmlDocPtr doc)
1280 if (doc == NULL) return;
1281 xmlCtxtDumpDocHead(ctxt, doc);
1282 if ((doc->intSubset != NULL) && (doc->intSubset->entities != NULL)) {
1284 doc->intSubset->entities;
1292 if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) {
1294 doc->extSubset->entities;
1389 * @doc: the document
1394 xmlDebugDumpEntities(FILE * output, xmlDocPtr doc)
1401 xmlCtxtDumpEntities(&ctxt, doc);
1494 * @doc: the document
1499 xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc)
1508 xmlCtxtDumpDocumentHead(&ctxt, doc);
1515 * @doc: the document
1520 xmlDebugDumpDocument(FILE * output, xmlDocPtr doc)
1529 xmlCtxtDumpDocument(&ctxt, doc);
1563 * @doc: the document
1571 xmlDebugCheckDocument(FILE * output, xmlDocPtr doc)
1580 xmlCtxtDumpDocument(&ctxt, doc);
1899 xmlElemDump(fp, node->doc, node);
2052 base = xmlNodeGetBase(node->doc, node);
2374 ret = xmlRelaxNGValidateDoc(vctxt, sctxt->doc);
2413 if (ctxt->doc->type == XML_HTML_DOCUMENT_NODE) {
2418 htmlNodeDumpFile(ctxt->output, ctxt->doc, node);
2423 xmlElemDump(ctxt->output, ctxt->doc, node);
2429 xmlElemDump(ctxt->output, ctxt->doc, node);
2453 xmlDocPtr doc;
2457 if (ctxt->doc != NULL)
2458 html = (ctxt->doc->type == XML_HTML_DOCUMENT_NODE);
2462 doc = htmlParseFile(filename, NULL);
2465 doc = NULL;
2468 doc = xmlReadFile(filename,NULL,0);
2470 if (doc != NULL) {
2472 xmlFreeDoc(ctxt->doc);
2479 ctxt->doc = doc;
2480 ctxt->node = (xmlNodePtr) doc;
2482 ctxt->pctxt = xmlXPathNewContext(doc);
2522 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2530 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2536 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2552 xmlElemDump(f, ctxt->doc, node);
2576 if ((ctxt == NULL) || (ctxt->doc == NULL))
2589 switch (ctxt->doc->type) {
2591 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2598 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2603 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2641 if ((ctxt == NULL) || (ctxt->doc == NULL)) return(-1);
2647 res = xmlValidateDocument(&vctxt, ctxt->doc);
2653 res = xmlValidateDtd(&vctxt, ctxt->doc, subset);
2788 * @doc: the initial document
2798 xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
2810 if (doc == NULL)
2822 ctxt->doc = doc;
2826 ctxt->node = (xmlNodePtr) ctxt->doc;
2829 ctxt->pctxt = xmlXPathNewContext(ctxt->doc);
2836 if (ctxt->node == (xmlNodePtr) ctxt->doc)
2981 root = xmlDocGetRootElement(ctxt->doc);
3085 ctxt->node = (xmlNodePtr) ctxt->doc;
3252 xmlFreeDoc(ctxt->doc);