Home | History | Annotate | Download | only in libxml2

Lines Matching defs:doc

278 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
5441 xmlErrMemory(ctxt, "New Doc failed");
5512 xmlErrMemory(ctxt, "New Doc failed");
6948 xmlErrMemory(ctxt, "New Doc failed");
7163 list->doc = ctxt->myDoc;
7178 xmlSetTreeDoc(list, ent->doc);
10669 * Then possibly doc type declaration(s) and more Misc
12638 xmlErrMemory(ctxt, "New Doc failed");
12671 ret->doc = NULL;
12674 tmp->doc = NULL;
12785 xmlErrMemory(ctxt, "New Doc failed");
12802 ret->doc = NULL;
12805 tmp->doc = NULL;
12926 newDoc->children->doc = ctx->myDoc;
13051 * @doc: the document the chunk pertains to
13067 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
13089 if (doc == NULL)
13131 newDoc->intSubset = doc->intSubset;
13132 newDoc->extSubset = doc->extSubset;
13133 newDoc->dict = doc->dict;
13136 if (doc->URL != NULL) {
13137 newDoc->URL = xmlStrdup(doc->URL);
13154 ctxt->myDoc = doc;
13155 newRoot->doc = doc;
13260 * @doc: the document the chunk pertains to
13279 xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data,
13281 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL,
13287 * @doc: the document the chunk pertains to
13306 xmlParseBalancedChunkMemory(xmlDocPtr doc, xmlSAXHandlerPtr sax,
13308 return xmlParseBalancedChunkMemoryRecover( doc, sax, user_data,
13532 xmlDocPtr doc = NULL;
13565 doc = node->doc;
13567 doc = (xmlDocPtr) node;
13568 if (doc == NULL)
13575 if (doc->type == XML_DOCUMENT_NODE)
13578 else if (doc->type == XML_HTML_DOCUMENT_NODE) {
13594 * Use input doc's dict if present, else assure XML_PARSE_NODICT is set.
13595 * We need a dictionary for xmlDetectSAX2, so if there's no doc dict
13598 if (doc->dict != NULL) {
13601 ctxt->dict = doc->dict;
13605 if (doc->encoding != NULL) {
13610 ctxt->encoding = xmlStrdup((const xmlChar *) doc->encoding);
13612 hdlr = xmlFindCharEncodingHandler((const char *) doc->encoding);
13622 ctxt->myDoc = doc;
13671 if (doc->type == XML_HTML_DOCUMENT_NODE)
13726 if (doc->dict != NULL)
13739 * @doc: the document the chunk pertains to
13763 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
13800 if ((doc != NULL) && (doc->dict != NULL)) {
13802 ctxt->dict = doc->dict;
13811 if (doc != NULL) {
13812 newDoc->intSubset = doc->intSubset;
13813 newDoc->extSubset = doc->extSubset;
13827 if (doc == NULL) {
13831 newDoc->children->doc = doc;
13832 /* Ensure that doc has XML spec namespace */
13833 xmlSearchNsByHref(doc, (xmlNodePtr)doc, XML_XML_NAMESPACE);
13834 newDoc->oldNs = doc->oldNs;
13847 if ( doc != NULL ){
13848 content = doc->children;
13849 doc->children = NULL;
13851 doc->children = content;
13884 xmlSetTreeDoc(cur, doc);