Lines Matching defs:doc
56 xmlDocPtr doc;
67 doc = xmlNewDoc((xmlChar *) "1.0");
68 if (doc == NULL)
70 n = xmlDocCopyNode((xmlNodePtr) node, doc, 1);
72 xmlFreeDoc(doc);
75 xmlDocSetRootElement(doc, n);
91 ret = xmlSchemaValidateDoc(vctx, doc);
93 xmlFreeDoc(doc);
118 xmlDocPtr doc;
128 doc = xmlNewDoc((xmlChar *) "1.0");
129 if (doc == NULL)
131 n = xmlDocCopyNode((xmlNodePtr) node, doc, 1);
133 xmlFreeDoc(doc);
136 xmlDocSetRootElement(doc, n);
142 xmlFreeDoc(doc);
150 ret = xmlValidateDtd(&vctx, doc, dtd);
151 xmlFreeDoc(doc);
181 xmlDocPtr doc;
184 doc = xmlParseMemory(buf, strlen(buf));
185 if (doc == NULL)
187 node = xmlDocGetRootElement(doc);
189 xmlFreeDoc(doc);
208 xmlDocPtr doc;
210 doc = xmlNewDoc((xmlChar *) "1.0");
211 n = xmlDocCopyNode(n, doc, 1);
212 xmlDocSetRootElement(doc, n);
213 xmlDocDumpFormatMemory(doc, &buf, &bufsiz, 0);
214 xmlFreeDoc(doc);