Lines Matching refs:doc
94 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);
552 if ((writer->doc != NULL) && (writer->doc->encoding == NULL))
553 writer->doc->encoding = xmlStrdup((xmlChar *)writer->out->encoder->name);
1494 xmlAttrSerializeTxtContent(writer->out->buffer, writer->doc,
4496 xmlDocPtr doc;
4520 doc = ctxt->myDoc;
4521 if (doc == NULL)
4522 doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
4523 if (doc != NULL) {
4524 if (doc->children == NULL) {
4526 doc->encoding = xmlStrdup(ctxt->encoding);
4528 doc->encoding = NULL;
4529 doc->standalone = ctxt->standalone;