Lines Matching defs:doc
95 xmlDocPtr doc;
221 ret->doc = xmlNewDoc(NULL);
350 * @doc: address of a xmlDocPtr to hold the new XML document tree
353 * Create a new xmlNewTextWriter structure with @*doc as output
358 xmlNewTextWriterDoc(xmlDocPtr * doc, int compression)
399 if (doc != NULL) {
400 *doc = ctxt->myDoc;
409 * @doc: xmlDocPtr
410 * @node: xmlNodePtr or NULL for doc->children
413 * Create a new xmlNewTextWriter structure with @doc as output
419 xmlNewTextWriterTree(xmlDocPtr doc, xmlNodePtr node, int compression)
425 if (doc == NULL) {
457 ctxt->myDoc = doc;
461 xmlSetDocCompressMode(doc, compression);
495 if (writer->doc != NULL)
496 xmlFreeDoc(writer->doc);
550 if ((writer->doc != NULL) && (writer->doc->encoding == NULL))
551 writer->doc->encoding = xmlStrdup((xmlChar *)writer->out->encoder->name);
1438 xmlAttrSerializeTxtContent(writer->out->buffer, writer->doc,
4414 xmlDocPtr doc;
4438 doc = ctxt->myDoc;
4439 if (doc == NULL)
4440 doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
4441 if (doc != NULL) {
4442 if (doc->children == NULL) {
4444 doc->encoding = xmlStrdup(ctxt->encoding);
4446 doc->encoding = NULL;
4447 doc->standalone = ctxt->standalone;