Lines Matching defs:doc
182 xmlDocPtr doc;
238 xmlRelaxNGDocumentPtr doc; /* Current parsed external ref */
359 xmlDocPtr doc; /* the document being validated */
404 xmlDocPtr doc; /* the associated XML document */
417 xmlDocPtr doc; /* the associated XML document */
688 if (docu->doc != NULL)
689 xmlFreeDoc(docu->doc);
727 if (incl->doc != NULL)
728 xmlFreeDoc(incl->doc);
787 if (schema->doc != NULL)
788 xmlFreeDoc(schema->doc);
814 if (schema->doc != NULL)
815 xmlFreeDoc(schema->doc);
1193 root = xmlDocGetRootElement(ctxt->doc);
1222 ret->node = (xmlNodePtr) ctxt->doc;
1439 xmlDocPtr doc);
1444 * @value: the element doc
1557 if ((inc != NULL) && (inc->doc != NULL) &&
1558 (inc->doc->children != NULL)) {
1561 (inc->doc->children->name, BAD_CAST "grammar")) {
1566 xmlDocGetRootElement(inc->doc)->children,
1600 xmlDocPtr doc;
1624 doc = xmlReadFile((const char *) URL,NULL,0);
1625 if (doc == NULL) {
1640 xmlFreeDoc(doc);
1644 ret->doc = doc;
1653 root = xmlDocGetRootElement(doc);
1674 doc = xmlRelaxNGCleanupDoc(ctxt, doc);
1675 if (doc == NULL) {
1691 root = xmlDocGetRootElement(doc);
1858 * @value: the element doc
1860 * Pushes a new doc on top of the doc stack
1891 ctxt->doc = value;
1899 * Pops the top doc from the doc stack
1901 * Returns the doc just removed
1912 ctxt->doc = ctxt->docTab[ctxt->docNr - 1];
1914 ctxt->doc = NULL;
1937 xmlDocPtr doc;
1956 doc = xmlReadFile((const char *) URL,NULL,0);
1957 if (doc == NULL) {
1968 xmlRngPErr(ctxt, (xmlNodePtr) doc, XML_ERR_NO_MEMORY,
1969 "xmlRelaxNG: allocate memory for doc %s\n", URL, NULL);
1970 xmlFreeDoc(doc);
1974 ret->doc = doc;
1984 root = xmlDocGetRootElement(doc);
2000 doc = xmlRelaxNGCleanupDoc(ctxt, doc);
2001 if (doc == NULL) {
2002 ctxt->doc = NULL;
4558 root = xmlDocGetRootElement(incl->doc);
4753 root = xmlDocGetRootElement(docu->doc);
6787 * @doc: a preparsed document tree
6791 * document, the @doc parameter is duplicated internally.
6796 xmlRelaxNGNewDocParserCtxt(xmlDocPtr doc)
6801 if (doc == NULL)
6803 copy = xmlCopyDoc(doc, 1);
6833 if (ctxt->doc != NULL)
6834 xmlRelaxNGFreeDocument(ctxt->doc);
6962 val = xmlNodeListGetString(node->doc, cur->children, 1);
7088 base = xmlNodeGetBase(cur->doc, cur);
7135 base = xmlNodeGetBase(cur->doc, cur);
7195 node = xmlNewDocNode(cur->doc, cur->ns,
7262 ns = xmlSearchNs(cur->doc, cur, prefix);
7440 * @doc: an xmldocPtr document pointer
7448 xmlRelaxNGCleanupDoc(xmlRelaxNGParserCtxtPtr ctxt, xmlDocPtr doc)
7455 root = xmlDocGetRootElement(doc);
7457 xmlRngPErr(ctxt, (xmlNodePtr) doc, XML_RNGP_EMPTY, "xmlRelaxNGParse: %s is empty\n",
7462 return (doc);
7479 xmlDocPtr doc;
7491 doc = xmlReadFile((const char *) ctxt->URL,NULL,0);
7492 if (doc == NULL) {
7499 doc = xmlReadMemory(ctxt->buffer, ctxt->size,NULL,NULL,0);
7500 if (doc == NULL) {
7506 doc->URL = xmlStrdup(BAD_CAST "in_memory_buffer");
7509 doc = ctxt->document;
7515 ctxt->document = doc;
7520 doc = xmlRelaxNGCleanupDoc(ctxt, doc);
7521 if (doc == NULL) {
7530 root = xmlDocGetRootElement(doc);
7532 xmlRngPErr(ctxt, (xmlNodePtr) doc,
7563 xmlFreeDoc(doc);
7587 ret->doc = doc;
7873 if (schema->doc == NULL) {
7875 } else if (schema->doc->URL != NULL) {
7876 fprintf(output, "%s\n", schema->doc->URL);
7903 if (schema->doc == NULL) {
7906 xmlDocDump(output, schema->doc);
8278 * @doc: a document instance
8288 xmlDocPtr doc ATTRIBUTE_UNUSED,
8401 * @doc: a document instance
8410 xmlDocPtr doc ATTRIBUTE_UNUSED,
8449 * @doc: a document instance
8459 xmlDocPtr doc ATTRIBUTE_UNUSED,
9114 value = xmlNodeListGetString(prop->doc, prop->children, 1);
9152 value = xmlNodeListGetString(prop->doc, prop->children, 1);
10726 * @doc: the document
10733 xmlRelaxNGValidateDocument(xmlRelaxNGValidCtxtPtr ctxt, xmlDocPtr doc)
10741 if ((ctxt == NULL) || (ctxt->schema == NULL) || (doc == NULL))
10807 if (xmlValidateDocumentFinal(&vctxt, doc) != 1)
11026 * @doc: a parsed document tree
11034 xmlRelaxNGValidateDoc(xmlRelaxNGValidCtxtPtr ctxt, xmlDocPtr doc)
11038 if ((ctxt == NULL) || (doc == NULL))
11041 ctxt->doc = doc;
11043 ret = xmlRelaxNGValidateDocument(ctxt, doc);
11047 xmlRelaxNGCleanPSVI((xmlNodePtr) doc);