Lines Matching refs:writer
108 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
120 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
122 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
477 xmlFreeTextWriter(xmlTextWriterPtr writer) in xmlFreeTextWriter() argument
479 if (writer == NULL) in xmlFreeTextWriter()
482 if (writer->out != NULL) in xmlFreeTextWriter()
483 xmlOutputBufferClose(writer->out); in xmlFreeTextWriter()
485 if (writer->nodes != NULL) in xmlFreeTextWriter()
486 xmlListDelete(writer->nodes); in xmlFreeTextWriter()
488 if (writer->nsstack != NULL) in xmlFreeTextWriter()
489 xmlListDelete(writer->nsstack); in xmlFreeTextWriter()
491 if (writer->ctxt != NULL) { in xmlFreeTextWriter()
492 if ((writer->ctxt->myDoc != NULL) && (writer->no_doc_free == 0)) { in xmlFreeTextWriter()
493 xmlFreeDoc(writer->ctxt->myDoc); in xmlFreeTextWriter()
494 writer->ctxt->myDoc = NULL; in xmlFreeTextWriter()
496 xmlFreeParserCtxt(writer->ctxt); in xmlFreeTextWriter()
499 if (writer->doc != NULL) in xmlFreeTextWriter()
500 xmlFreeDoc(writer->doc); in xmlFreeTextWriter()
502 if (writer->ichar != NULL) in xmlFreeTextWriter()
503 xmlFree(writer->ichar); in xmlFreeTextWriter()
504 xmlFree(writer); in xmlFreeTextWriter()
519 xmlTextWriterStartDocument(xmlTextWriterPtr writer, const char *version, in xmlTextWriterStartDocument() argument
527 if ((writer == NULL) || (writer->out == NULL)) { in xmlTextWriterStartDocument()
528 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDocument()
533 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDocument()
535 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDocument()
544 xmlWriterErrMsg(writer, XML_ERR_UNSUPPORTED_ENCODING, in xmlTextWriterStartDocument()
550 writer->out->encoder = encoder; in xmlTextWriterStartDocument()
552 if (writer->out->conv == NULL) { in xmlTextWriterStartDocument()
553 writer->out->conv = xmlBufCreateSize(4000); in xmlTextWriterStartDocument()
555 xmlCharEncOutput(writer->out, 1); in xmlTextWriterStartDocument()
556 if ((writer->doc != NULL) && (writer->doc->encoding == NULL)) in xmlTextWriterStartDocument()
557 writer->doc->encoding = xmlStrdup((xmlChar *)writer->out->encoder->name); in xmlTextWriterStartDocument()
559 writer->out->conv = NULL; in xmlTextWriterStartDocument()
562 count = xmlOutputBufferWriteString(writer->out, "<?xml version="); in xmlTextWriterStartDocument()
566 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
571 count = xmlOutputBufferWriteString(writer->out, version); in xmlTextWriterStartDocument()
573 count = xmlOutputBufferWriteString(writer->out, "1.0"); in xmlTextWriterStartDocument()
577 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
581 if (writer->out->encoder != 0) { in xmlTextWriterStartDocument()
582 count = xmlOutputBufferWriteString(writer->out, " encoding="); in xmlTextWriterStartDocument()
586 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
591 xmlOutputBufferWriteString(writer->out, in xmlTextWriterStartDocument()
592 writer->out->encoder->name); in xmlTextWriterStartDocument()
596 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
603 count = xmlOutputBufferWriteString(writer->out, " standalone="); in xmlTextWriterStartDocument()
607 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
611 count = xmlOutputBufferWriteString(writer->out, standalone); in xmlTextWriterStartDocument()
615 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
621 count = xmlOutputBufferWriteString(writer->out, "?>\n"); in xmlTextWriterStartDocument()
639 xmlTextWriterEndDocument(xmlTextWriterPtr writer) in xmlTextWriterEndDocument() argument
646 if (writer == NULL) { in xmlTextWriterEndDocument()
647 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndDocument()
653 while ((lk = xmlListFront(writer->nodes)) != NULL) { in xmlTextWriterEndDocument()
661 count = xmlTextWriterEndElement(writer); in xmlTextWriterEndDocument()
668 count = xmlTextWriterEndPI(writer); in xmlTextWriterEndDocument()
674 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterEndDocument()
688 count = xmlTextWriterEndDTD(writer); in xmlTextWriterEndDocument()
694 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDocument()
704 if (!writer->indent) { in xmlTextWriterEndDocument()
705 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDocument()
711 sum += xmlTextWriterFlush(writer); in xmlTextWriterEndDocument()
725 xmlTextWriterStartComment(xmlTextWriterPtr writer) in xmlTextWriterStartComment() argument
732 if (writer == NULL) { in xmlTextWriterStartComment()
733 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartComment()
739 lk = xmlListFront(writer->nodes); in xmlTextWriterStartComment()
749 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartComment()
753 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartComment()
757 if (writer->indent) { in xmlTextWriterStartComment()
759 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartComment()
775 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartComment()
783 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartComment()
785 if (writer->indent) { in xmlTextWriterStartComment()
786 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartComment()
792 count = xmlOutputBufferWriteString(writer->out, "<!--"); in xmlTextWriterStartComment()
809 xmlTextWriterEndComment(xmlTextWriterPtr writer) in xmlTextWriterEndComment() argument
816 if (writer == NULL) { in xmlTextWriterEndComment()
817 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndComment()
822 lk = xmlListFront(writer->nodes); in xmlTextWriterEndComment()
824 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndComment()
836 count = xmlOutputBufferWriteString(writer->out, "-->"); in xmlTextWriterEndComment()
845 if (writer->indent) { in xmlTextWriterEndComment()
846 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndComment()
852 xmlListPopFront(writer->nodes); in xmlTextWriterEndComment()
867 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatComment() argument
875 rc = xmlTextWriterWriteVFormatComment(writer, format, ap); in xmlTextWriterWriteFormatComment()
892 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatComment() argument
898 if (writer == NULL) { in xmlTextWriterWriteVFormatComment()
899 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteVFormatComment()
908 rc = xmlTextWriterWriteComment(writer, buf); in xmlTextWriterWriteVFormatComment()
924 xmlTextWriterWriteComment(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteComment() argument
930 count = xmlTextWriterStartComment(writer); in xmlTextWriterWriteComment()
934 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteComment()
938 count = xmlTextWriterEndComment(writer); in xmlTextWriterWriteComment()
956 xmlTextWriterStartElement(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartElement() argument
963 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartElement()
967 lk = xmlListFront(writer->nodes); in xmlTextWriterStartElement()
978 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartElement()
985 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartElement()
989 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartElement()
993 if (writer->indent) in xmlTextWriterStartElement()
995 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartElement()
1007 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElement()
1014 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElement()
1021 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartElement()
1023 if (writer->indent) { in xmlTextWriterStartElement()
1024 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartElement()
1028 count = xmlOutputBufferWriteString(writer->out, "<"); in xmlTextWriterStartElement()
1033 xmlOutputBufferWriteString(writer->out, (const char *) p->name); in xmlTextWriterStartElement()
1053 xmlTextWriterStartElementNS(xmlTextWriterPtr writer, in xmlTextWriterStartElementNS() argument
1061 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartElementNS()
1072 count = xmlTextWriterStartElement(writer, buf); in xmlTextWriterStartElementNS()
1082 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElementNS()
1096 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElementNS()
1101 p->elem = xmlListFront(writer->nodes); in xmlTextWriterStartElementNS()
1103 xmlListPushFront(writer->nsstack, p); in xmlTextWriterStartElementNS()
1118 xmlTextWriterEndElement(xmlTextWriterPtr writer) in xmlTextWriterEndElement() argument
1125 if (writer == NULL) in xmlTextWriterEndElement()
1128 lk = xmlListFront(writer->nodes); in xmlTextWriterEndElement()
1130 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1131 writer->nsstack = NULL; in xmlTextWriterEndElement()
1137 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1138 writer->nsstack = NULL; in xmlTextWriterEndElement()
1145 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterEndElement()
1147 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1148 writer->nsstack = NULL; in xmlTextWriterEndElement()
1155 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterEndElement()
1160 if (writer->indent) /* next element needs indent */ in xmlTextWriterEndElement()
1161 writer->doindent = 1; in xmlTextWriterEndElement()
1162 count = xmlOutputBufferWriteString(writer->out, "/>"); in xmlTextWriterEndElement()
1168 if ((writer->indent) && (writer->doindent)) { in xmlTextWriterEndElement()
1169 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterEndElement()
1171 writer->doindent = 1; in xmlTextWriterEndElement()
1173 writer->doindent = 1; in xmlTextWriterEndElement()
1174 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterEndElement()
1178 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterEndElement()
1183 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndElement()
1192 if (writer->indent) { in xmlTextWriterEndElement()
1193 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndElement()
1197 xmlListPopFront(writer->nodes); in xmlTextWriterEndElement()
1210 xmlTextWriterFullEndElement(xmlTextWriterPtr writer) in xmlTextWriterFullEndElement() argument
1217 if (writer == NULL) in xmlTextWriterFullEndElement()
1220 lk = xmlListFront(writer->nodes); in xmlTextWriterFullEndElement()
1231 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterFullEndElement()
1238 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterFullEndElement()
1243 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1247 if (writer->indent) in xmlTextWriterFullEndElement()
1248 writer->doindent = 0; in xmlTextWriterFullEndElement()
1251 if ((writer->indent) && (writer->doindent)) { in xmlTextWriterFullEndElement()
1252 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterFullEndElement()
1254 writer->doindent = 1; in xmlTextWriterFullEndElement()
1256 writer->doindent = 1; in xmlTextWriterFullEndElement()
1257 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterFullEndElement()
1261 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterFullEndElement()
1266 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1275 if (writer->indent) { in xmlTextWriterFullEndElement()
1276 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterFullEndElement()
1280 xmlListPopFront(writer->nodes); in xmlTextWriterFullEndElement()
1295 xmlTextWriterWriteFormatRaw(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatRaw() argument
1303 rc = xmlTextWriterWriteVFormatRaw(writer, format, ap); in xmlTextWriterWriteFormatRaw()
1320 xmlTextWriterWriteVFormatRaw(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteVFormatRaw() argument
1326 if (writer == NULL) in xmlTextWriterWriteVFormatRaw()
1333 rc = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteVFormatRaw()
1351 xmlTextWriterWriteRawLen(xmlTextWriterPtr writer, const xmlChar * content, in xmlTextWriterWriteRawLen() argument
1359 if (writer == NULL) { in xmlTextWriterWriteRawLen()
1360 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteRawLen()
1366 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteRawLen()
1372 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteRawLen()
1375 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteRawLen()
1381 if (writer->indent) in xmlTextWriterWriteRawLen()
1382 writer->doindent = 0; in xmlTextWriterWriteRawLen()
1386 xmlOutputBufferWrite(writer->out, len, (const char *) content); in xmlTextWriterWriteRawLen()
1405 xmlTextWriterWriteRaw(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteRaw() argument
1407 return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); in xmlTextWriterWriteRaw()
1421 xmlTextWriterWriteFormatString(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatString() argument
1427 if ((writer == NULL) || (format == NULL)) in xmlTextWriterWriteFormatString()
1432 rc = xmlTextWriterWriteVFormatString(writer, format, ap); in xmlTextWriterWriteFormatString()
1449 xmlTextWriterWriteVFormatString(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatString() argument
1455 if ((writer == NULL) || (format == NULL)) in xmlTextWriterWriteVFormatString()
1462 rc = xmlTextWriterWriteString(writer, buf); in xmlTextWriterWriteVFormatString()
1478 xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteString() argument
1486 if ((writer == NULL) || (content == NULL)) in xmlTextWriterWriteString()
1491 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteString()
1500 xmlOutputBufferWriteEscape(writer->out, content, NULL); in xmlTextWriterWriteString()
1506 xmlBufAttrSerializeTxtContent(writer->out->buffer, in xmlTextWriterWriteString()
1507 writer->doc, NULL, content); in xmlTextWriterWriteString()
1516 count = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteString()
1623 xmlTextWriterWriteBase64(xmlTextWriterPtr writer, const char *data, in xmlTextWriterWriteBase64() argument
1631 if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) in xmlTextWriterWriteBase64()
1635 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteBase64()
1639 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBase64()
1646 if (writer->indent) in xmlTextWriterWriteBase64()
1647 writer->doindent = 0; in xmlTextWriterWriteBase64()
1650 xmlOutputBufferWriteBase64(writer->out, len, in xmlTextWriterWriteBase64()
1716 xmlTextWriterWriteBinHex(xmlTextWriterPtr writer, const char *data, in xmlTextWriterWriteBinHex() argument
1724 if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) in xmlTextWriterWriteBinHex()
1728 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteBinHex()
1732 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBinHex()
1739 if (writer->indent) in xmlTextWriterWriteBinHex()
1740 writer->doindent = 0; in xmlTextWriterWriteBinHex()
1743 xmlOutputBufferWriteBinHex(writer->out, len, in xmlTextWriterWriteBinHex()
1762 xmlTextWriterStartAttribute(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartAttribute() argument
1769 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartAttribute()
1773 lk = xmlListFront(writer->nodes); in xmlTextWriterStartAttribute()
1783 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartAttribute()
1789 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterStartAttribute()
1794 xmlOutputBufferWriteString(writer->out, in xmlTextWriterStartAttribute()
1799 count = xmlOutputBufferWriteString(writer->out, "="); in xmlTextWriterStartAttribute()
1803 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartAttribute()
1828 xmlTextWriterStartAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterStartAttributeNS() argument
1837 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartAttributeNS()
1852 nsentry.elem = xmlListFront(writer->nodes); in xmlTextWriterStartAttributeNS()
1854 curns = (xmlTextWriterNsStackEntry *)xmlListSearch(writer->nsstack, in xmlTextWriterStartAttributeNS()
1872 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartAttributeNS()
1880 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartAttributeNS()
1885 p->elem = xmlListFront(writer->nodes); in xmlTextWriterStartAttributeNS()
1887 xmlListPushFront(writer->nsstack, p); in xmlTextWriterStartAttributeNS()
1899 count = xmlTextWriterStartAttribute(writer, buf); in xmlTextWriterStartAttributeNS()
1917 xmlTextWriterEndAttribute(xmlTextWriterPtr writer) in xmlTextWriterEndAttribute() argument
1924 if (writer == NULL) in xmlTextWriterEndAttribute()
1927 lk = xmlListFront(writer->nodes); in xmlTextWriterEndAttribute()
1942 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndAttribute()
1967 xmlTextWriterWriteFormatAttribute(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatAttribute() argument
1976 rc = xmlTextWriterWriteVFormatAttribute(writer, name, format, ap); in xmlTextWriterWriteFormatAttribute()
1994 xmlTextWriterWriteVFormatAttribute(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatAttribute() argument
2001 if (writer == NULL) in xmlTextWriterWriteVFormatAttribute()
2008 rc = xmlTextWriterWriteAttribute(writer, name, buf); in xmlTextWriterWriteVFormatAttribute()
2025 xmlTextWriterWriteAttribute(xmlTextWriterPtr writer, const xmlChar * name, in xmlTextWriterWriteAttribute() argument
2032 count = xmlTextWriterStartAttribute(writer, name); in xmlTextWriterWriteAttribute()
2036 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttribute()
2040 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttribute()
2062 xmlTextWriterWriteFormatAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatAttributeNS() argument
2073 rc = xmlTextWriterWriteVFormatAttributeNS(writer, prefix, name, in xmlTextWriterWriteFormatAttributeNS()
2094 xmlTextWriterWriteVFormatAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatAttributeNS() argument
2103 if (writer == NULL) in xmlTextWriterWriteVFormatAttributeNS()
2110 rc = xmlTextWriterWriteAttributeNS(writer, prefix, name, namespaceURI, in xmlTextWriterWriteVFormatAttributeNS()
2130 xmlTextWriterWriteAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteAttributeNS() argument
2138 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterWriteAttributeNS()
2142 count = xmlTextWriterStartAttributeNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteAttributeNS()
2146 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttributeNS()
2150 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttributeNS()
2170 xmlTextWriterWriteFormatElement(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatElement() argument
2179 rc = xmlTextWriterWriteVFormatElement(writer, name, format, ap); in xmlTextWriterWriteFormatElement()
2197 xmlTextWriterWriteVFormatElement(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatElement() argument
2204 if (writer == NULL) in xmlTextWriterWriteVFormatElement()
2211 rc = xmlTextWriterWriteElement(writer, name, buf); in xmlTextWriterWriteVFormatElement()
2228 xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar * name, in xmlTextWriterWriteElement() argument
2235 count = xmlTextWriterStartElement(writer, name); in xmlTextWriterWriteElement()
2240 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElement()
2245 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElement()
2267 xmlTextWriterWriteFormatElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatElementNS() argument
2278 rc = xmlTextWriterWriteVFormatElementNS(writer, prefix, name, in xmlTextWriterWriteFormatElementNS()
2299 xmlTextWriterWriteVFormatElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatElementNS() argument
2308 if (writer == NULL) in xmlTextWriterWriteVFormatElementNS()
2315 rc = xmlTextWriterWriteElementNS(writer, prefix, name, namespaceURI, in xmlTextWriterWriteVFormatElementNS()
2335 xmlTextWriterWriteElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteElementNS() argument
2343 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterWriteElementNS()
2348 xmlTextWriterStartElementNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteElementNS()
2352 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElementNS()
2356 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElementNS()
2374 xmlTextWriterStartPI(xmlTextWriterPtr writer, const xmlChar * target) in xmlTextWriterStartPI() argument
2381 if ((writer == NULL) || (target == NULL) || (*target == '\0')) in xmlTextWriterStartPI()
2385 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartPI()
2391 lk = xmlListFront(writer->nodes); in xmlTextWriterStartPI()
2397 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartPI()
2404 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartPI()
2408 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartPI()
2420 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartPI()
2432 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartPI()
2439 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartPI()
2446 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartPI()
2448 count = xmlOutputBufferWriteString(writer->out, "<?"); in xmlTextWriterStartPI()
2453 xmlOutputBufferWriteString(writer->out, (const char *) p->name); in xmlTextWriterStartPI()
2470 xmlTextWriterEndPI(xmlTextWriterPtr writer) in xmlTextWriterEndPI() argument
2477 if (writer == NULL) in xmlTextWriterEndPI()
2480 lk = xmlListFront(writer->nodes); in xmlTextWriterEndPI()
2492 count = xmlOutputBufferWriteString(writer->out, "?>"); in xmlTextWriterEndPI()
2501 if (writer->indent) { in xmlTextWriterEndPI()
2502 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndPI()
2508 xmlListPopFront(writer->nodes); in xmlTextWriterEndPI()
2524 xmlTextWriterWriteFormatPI(xmlTextWriterPtr writer, const xmlChar * target, in xmlTextWriterWriteFormatPI() argument
2532 rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); in xmlTextWriterWriteFormatPI()
2550 xmlTextWriterWriteVFormatPI(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatPI() argument
2557 if (writer == NULL) in xmlTextWriterWriteVFormatPI()
2564 rc = xmlTextWriterWritePI(writer, target, buf); in xmlTextWriterWriteVFormatPI()
2581 xmlTextWriterWritePI(xmlTextWriterPtr writer, const xmlChar * target, in xmlTextWriterWritePI() argument
2588 count = xmlTextWriterStartPI(writer, target); in xmlTextWriterWritePI()
2593 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWritePI()
2598 count = xmlTextWriterEndPI(writer); in xmlTextWriterWritePI()
2615 xmlTextWriterStartCDATA(xmlTextWriterPtr writer) in xmlTextWriterStartCDATA() argument
2622 if (writer == NULL) in xmlTextWriterStartCDATA()
2626 lk = xmlListFront(writer->nodes); in xmlTextWriterStartCDATA()
2637 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartCDATA()
2644 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartCDATA()
2648 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartCDATA()
2655 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartCDATA()
2667 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartCDATA()
2675 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartCDATA()
2677 count = xmlOutputBufferWriteString(writer->out, "<![CDATA["); in xmlTextWriterStartCDATA()
2694 xmlTextWriterEndCDATA(xmlTextWriterPtr writer) in xmlTextWriterEndCDATA() argument
2701 if (writer == NULL) in xmlTextWriterEndCDATA()
2704 lk = xmlListFront(writer->nodes); in xmlTextWriterEndCDATA()
2715 count = xmlOutputBufferWriteString(writer->out, "]]>"); in xmlTextWriterEndCDATA()
2724 xmlListPopFront(writer->nodes); in xmlTextWriterEndCDATA()
2739 xmlTextWriterWriteFormatCDATA(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatCDATA() argument
2747 rc = xmlTextWriterWriteVFormatCDATA(writer, format, ap); in xmlTextWriterWriteFormatCDATA()
2764 xmlTextWriterWriteVFormatCDATA(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteVFormatCDATA() argument
2770 if (writer == NULL) in xmlTextWriterWriteVFormatCDATA()
2777 rc = xmlTextWriterWriteCDATA(writer, buf); in xmlTextWriterWriteVFormatCDATA()
2793 xmlTextWriterWriteCDATA(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteCDATA() argument
2799 count = xmlTextWriterStartCDATA(writer); in xmlTextWriterWriteCDATA()
2804 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteCDATA()
2809 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterWriteCDATA()
2829 xmlTextWriterStartDTD(xmlTextWriterPtr writer, in xmlTextWriterStartDTD() argument
2838 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTD()
2842 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTD()
2844 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDTD()
2852 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTD()
2859 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTD()
2866 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTD()
2868 count = xmlOutputBufferWriteString(writer->out, "<!DOCTYPE "); in xmlTextWriterStartDTD()
2872 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTD()
2879 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDTD()
2884 if (writer->indent) in xmlTextWriterStartDTD()
2885 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2887 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2892 count = xmlOutputBufferWriteString(writer->out, "PUBLIC "); in xmlTextWriterStartDTD()
2897 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2903 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterStartDTD()
2908 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2916 if (writer->indent) in xmlTextWriterStartDTD()
2917 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2919 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2923 count = xmlOutputBufferWriteString(writer->out, "SYSTEM "); in xmlTextWriterStartDTD()
2928 if (writer->indent) in xmlTextWriterStartDTD()
2929 count = xmlOutputBufferWriteString(writer->out, "\n "); in xmlTextWriterStartDTD()
2931 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2937 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2943 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterStartDTD()
2948 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2966 xmlTextWriterEndDTD(xmlTextWriterPtr writer) in xmlTextWriterEndDTD() argument
2974 if (writer == NULL) in xmlTextWriterEndDTD()
2980 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTD()
2988 count = xmlOutputBufferWriteString(writer->out, "]"); in xmlTextWriterEndDTD()
2994 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTD()
2996 if (writer->indent) { in xmlTextWriterEndDTD()
3000 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTD()
3003 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTD()
3007 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterEndDTD()
3011 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterEndDTD()
3016 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterEndDTD()
3019 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDTD()
3048 xmlTextWriterWriteFormatDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTD() argument
3058 rc = xmlTextWriterWriteVFormatDTD(writer, name, pubid, sysid, format, in xmlTextWriterWriteFormatDTD()
3079 xmlTextWriterWriteVFormatDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTD() argument
3088 if (writer == NULL) in xmlTextWriterWriteVFormatDTD()
3095 rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); in xmlTextWriterWriteVFormatDTD()
3114 xmlTextWriterWriteDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteDTD() argument
3123 count = xmlTextWriterStartDTD(writer, name, pubid, sysid); in xmlTextWriterWriteDTD()
3128 count = xmlTextWriterWriteString(writer, subset); in xmlTextWriterWriteDTD()
3133 count = xmlTextWriterEndDTD(writer); in xmlTextWriterWriteDTD()
3151 xmlTextWriterStartDTDElement(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartDTDElement() argument
3158 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDElement()
3162 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDElement()
3171 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDElement()
3175 if (writer->indent) { in xmlTextWriterStartDTDElement()
3176 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDElement()
3194 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDElement()
3201 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDElement()
3208 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDElement()
3210 if (writer->indent) { in xmlTextWriterStartDTDElement()
3211 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDElement()
3217 count = xmlOutputBufferWriteString(writer->out, "<!ELEMENT "); in xmlTextWriterStartDTDElement()
3221 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDElement()
3238 xmlTextWriterEndDTDElement(xmlTextWriterPtr writer) in xmlTextWriterEndDTDElement() argument
3245 if (writer == NULL) in xmlTextWriterEndDTDElement()
3249 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDElement()
3260 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDElement()
3269 if (writer->indent) { in xmlTextWriterEndDTDElement()
3270 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDElement()
3276 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDElement()
3292 xmlTextWriterWriteFormatDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDElement() argument
3301 rc = xmlTextWriterWriteVFormatDTDElement(writer, name, format, ap); in xmlTextWriterWriteFormatDTDElement()
3319 xmlTextWriterWriteVFormatDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDElement() argument
3326 if (writer == NULL) in xmlTextWriterWriteVFormatDTDElement()
3333 rc = xmlTextWriterWriteDTDElement(writer, name, buf); in xmlTextWriterWriteVFormatDTDElement()
3350 xmlTextWriterWriteDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDElement() argument
3360 count = xmlTextWriterStartDTDElement(writer, name); in xmlTextWriterWriteDTDElement()
3365 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDElement()
3370 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterWriteDTDElement()
3388 xmlTextWriterStartDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartDTDAttlist() argument
3395 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDAttlist()
3399 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDAttlist()
3408 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDAttlist()
3412 if (writer->indent) { in xmlTextWriterStartDTDAttlist()
3413 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDAttlist()
3431 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDAttlist()
3438 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDAttlist()
3445 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDAttlist()
3447 if (writer->indent) { in xmlTextWriterStartDTDAttlist()
3448 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDAttlist()
3454 count = xmlOutputBufferWriteString(writer->out, "<!ATTLIST "); in xmlTextWriterStartDTDAttlist()
3458 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDAttlist()
3475 xmlTextWriterEndDTDAttlist(xmlTextWriterPtr writer) in xmlTextWriterEndDTDAttlist() argument
3482 if (writer == NULL) in xmlTextWriterEndDTDAttlist()
3486 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDAttlist()
3497 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDAttlist()
3506 if (writer->indent) { in xmlTextWriterEndDTDAttlist()
3507 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDAttlist()
3513 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDAttlist()
3529 xmlTextWriterWriteFormatDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDAttlist() argument
3538 rc = xmlTextWriterWriteVFormatDTDAttlist(writer, name, format, ap); in xmlTextWriterWriteFormatDTDAttlist()
3556 xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDAttlist() argument
3563 if (writer == NULL) in xmlTextWriterWriteVFormatDTDAttlist()
3570 rc = xmlTextWriterWriteDTDAttlist(writer, name, buf); in xmlTextWriterWriteVFormatDTDAttlist()
3587 xmlTextWriterWriteDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDAttlist() argument
3597 count = xmlTextWriterStartDTDAttlist(writer, name); in xmlTextWriterWriteDTDAttlist()
3602 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDAttlist()
3607 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterWriteDTDAttlist()
3626 xmlTextWriterStartDTDEntity(xmlTextWriterPtr writer, in xmlTextWriterStartDTDEntity() argument
3634 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDEntity()
3638 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDEntity()
3645 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDEntity()
3649 if (writer->indent) { in xmlTextWriterStartDTDEntity()
3651 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDEntity()
3670 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDEntity()
3677 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDEntity()
3688 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDEntity()
3690 if (writer->indent) { in xmlTextWriterStartDTDEntity()
3691 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDEntity()
3697 count = xmlOutputBufferWriteString(writer->out, "<!ENTITY "); in xmlTextWriterStartDTDEntity()
3703 count = xmlOutputBufferWriteString(writer->out, "% "); in xmlTextWriterStartDTDEntity()
3709 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDEntity()
3726 xmlTextWriterEndDTDEntity(xmlTextWriterPtr writer) in xmlTextWriterEndDTDEntity() argument
3733 if (writer == NULL) in xmlTextWriterEndDTDEntity()
3737 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDEntity()
3747 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndDTDEntity()
3754 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDEntity()
3763 if (writer->indent) { in xmlTextWriterEndDTDEntity()
3764 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDEntity()
3770 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDEntity()
3787 xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDInternalEntity() argument
3797 rc = xmlTextWriterWriteVFormatDTDInternalEntity(writer, pe, name, in xmlTextWriterWriteFormatDTDInternalEntity()
3817 xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDInternalEntity() argument
3826 if (writer == NULL) in xmlTextWriterWriteVFormatDTDInternalEntity()
3833 rc = xmlTextWriterWriteDTDInternalEntity(writer, pe, name, buf); in xmlTextWriterWriteVFormatDTDInternalEntity()
3854 xmlTextWriterWriteDTDEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDEntity() argument
3868 return xmlTextWriterWriteDTDInternalEntity(writer, pe, name, in xmlTextWriterWriteDTDEntity()
3871 return xmlTextWriterWriteDTDExternalEntity(writer, pe, name, pubid, in xmlTextWriterWriteDTDEntity()
3887 xmlTextWriterWriteDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDInternalEntity() argument
3899 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDInternalEntity()
3904 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDInternalEntity()
3909 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDInternalEntity()
3931 xmlTextWriterWriteDTDExternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDExternalEntity() argument
3947 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDExternalEntity()
3953 xmlTextWriterWriteDTDExternalEntityContents(writer, pubid, sysid, in xmlTextWriterWriteDTDExternalEntity()
3959 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDExternalEntity()
3979 xmlTextWriterWriteDTDExternalEntityContents(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDExternalEntityContents() argument
3989 if (writer == NULL) { in xmlTextWriterWriteDTDExternalEntityContents()
3990 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
3996 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteDTDExternalEntityContents()
3998 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4012 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4018 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4025 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4030 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDExternalEntityContents()
4035 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4041 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterWriteDTDExternalEntityContents()
4046 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4054 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDExternalEntityContents()
4060 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDExternalEntityContents()
4065 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4071 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterWriteDTDExternalEntityContents()
4076 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4083 count = xmlOutputBufferWriteString(writer->out, " NDATA "); in xmlTextWriterWriteDTDExternalEntityContents()
4089 xmlOutputBufferWriteString(writer->out, in xmlTextWriterWriteDTDExternalEntityContents()
4111 xmlTextWriterWriteDTDNotation(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDNotation() argument
4120 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterWriteDTDNotation()
4124 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteDTDNotation()
4133 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterWriteDTDNotation()
4137 if (writer->indent) { in xmlTextWriterWriteDTDNotation()
4138 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterWriteDTDNotation()
4152 if (writer->indent) { in xmlTextWriterWriteDTDNotation()
4153 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterWriteDTDNotation()
4159 count = xmlOutputBufferWriteString(writer->out, "<!NOTATION "); in xmlTextWriterWriteDTDNotation()
4163 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterWriteDTDNotation()
4169 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDNotation()
4173 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4178 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterWriteDTDNotation()
4182 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4190 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDNotation()
4195 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDNotation()
4199 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4204 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterWriteDTDNotation()
4208 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4214 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterWriteDTDNotation()
4231 xmlTextWriterFlush(xmlTextWriterPtr writer) in xmlTextWriterFlush() argument
4235 if (writer == NULL) in xmlTextWriterFlush()
4238 if (writer->out == NULL) in xmlTextWriterFlush()
4241 count = xmlOutputBufferFlush(writer->out); in xmlTextWriterFlush()
4311 xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer) in xmlTextWriterOutputNSDecl() argument
4319 while (!xmlListEmpty(writer->nsstack)) { in xmlTextWriterOutputNSDecl()
4323 lk = xmlListFront(writer->nsstack); in xmlTextWriterOutputNSDecl()
4331 xmlListPopFront(writer->nsstack); in xmlTextWriterOutputNSDecl()
4334 count = xmlTextWriterWriteAttribute(writer, prefix, namespaceURI); in xmlTextWriterOutputNSDecl()
4339 xmlListDelete(writer->nsstack); in xmlTextWriterOutputNSDecl()
4340 writer->nsstack = NULL; in xmlTextWriterOutputNSDecl()
4577 xmlTextWriterSetIndent(xmlTextWriterPtr writer, int indent) in xmlTextWriterSetIndent() argument
4579 if ((writer == NULL) || (indent < 0)) in xmlTextWriterSetIndent()
4582 writer->indent = indent; in xmlTextWriterSetIndent()
4583 writer->doindent = 1; in xmlTextWriterSetIndent()
4598 xmlTextWriterSetIndentString(xmlTextWriterPtr writer, const xmlChar * str) in xmlTextWriterSetIndentString() argument
4600 if ((writer == NULL) || (!str)) in xmlTextWriterSetIndentString()
4603 if (writer->ichar != NULL) in xmlTextWriterSetIndentString()
4604 xmlFree(writer->ichar); in xmlTextWriterSetIndentString()
4605 writer->ichar = xmlStrdup(str); in xmlTextWriterSetIndentString()
4607 if (!writer->ichar) in xmlTextWriterSetIndentString()
4623 xmlTextWriterSetQuoteChar(xmlTextWriterPtr writer, xmlChar quotechar) in xmlTextWriterSetQuoteChar() argument
4625 if ((writer == NULL) || ((quotechar != '\'') && (quotechar != '"'))) in xmlTextWriterSetQuoteChar()
4628 writer->qchar = quotechar; in xmlTextWriterSetQuoteChar()
4642 xmlTextWriterWriteIndent(xmlTextWriterPtr writer) in xmlTextWriterWriteIndent() argument
4648 lksize = xmlListSize(writer->nodes); in xmlTextWriterWriteIndent()
4652 ret = xmlOutputBufferWriteString(writer->out, in xmlTextWriterWriteIndent()
4653 (const char *) writer->ichar); in xmlTextWriterWriteIndent()
4671 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer, in xmlTextWriterHandleStateDependencies() argument
4678 if (writer == NULL) in xmlTextWriterHandleStateDependencies()
4691 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterHandleStateDependencies()
4718 extra[1] = writer->qchar; in xmlTextWriterHandleStateDependencies()
4727 count = xmlOutputBufferWriteString(writer->out, extra); in xmlTextWriterHandleStateDependencies()