• Home
  • Raw
  • Download

Lines Matching refs:writer

135 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
147 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
149 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
504 xmlFreeTextWriter(xmlTextWriterPtr writer) in xmlFreeTextWriter() argument
506 if (writer == NULL) in xmlFreeTextWriter()
509 if (writer->out != NULL) in xmlFreeTextWriter()
510 xmlOutputBufferClose(writer->out); in xmlFreeTextWriter()
512 if (writer->nodes != NULL) in xmlFreeTextWriter()
513 xmlListDelete(writer->nodes); in xmlFreeTextWriter()
515 if (writer->nsstack != NULL) in xmlFreeTextWriter()
516 xmlListDelete(writer->nsstack); in xmlFreeTextWriter()
518 if (writer->ctxt != NULL) { in xmlFreeTextWriter()
519 if ((writer->ctxt->myDoc != NULL) && (writer->no_doc_free == 0)) { in xmlFreeTextWriter()
520 xmlFreeDoc(writer->ctxt->myDoc); in xmlFreeTextWriter()
521 writer->ctxt->myDoc = NULL; in xmlFreeTextWriter()
523 xmlFreeParserCtxt(writer->ctxt); in xmlFreeTextWriter()
526 if (writer->doc != NULL) in xmlFreeTextWriter()
527 xmlFreeDoc(writer->doc); in xmlFreeTextWriter()
529 if (writer->ichar != NULL) in xmlFreeTextWriter()
530 xmlFree(writer->ichar); in xmlFreeTextWriter()
531 xmlFree(writer); in xmlFreeTextWriter()
546 xmlTextWriterStartDocument(xmlTextWriterPtr writer, const char *version, in xmlTextWriterStartDocument() argument
554 if ((writer == NULL) || (writer->out == NULL)) { in xmlTextWriterStartDocument()
555 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDocument()
560 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDocument()
562 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDocument()
571 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDocument()
577 writer->out->encoder = encoder; in xmlTextWriterStartDocument()
579 if (writer->out->conv == NULL) { in xmlTextWriterStartDocument()
580 writer->out->conv = xmlBufCreateSize(4000); in xmlTextWriterStartDocument()
582 xmlCharEncOutput(writer->out, 1); in xmlTextWriterStartDocument()
583 if ((writer->doc != NULL) && (writer->doc->encoding == NULL)) in xmlTextWriterStartDocument()
584 writer->doc->encoding = xmlStrdup((xmlChar *)writer->out->encoder->name); in xmlTextWriterStartDocument()
586 writer->out->conv = NULL; in xmlTextWriterStartDocument()
589 count = xmlOutputBufferWriteString(writer->out, "<?xml version="); in xmlTextWriterStartDocument()
593 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
598 count = xmlOutputBufferWriteString(writer->out, version); in xmlTextWriterStartDocument()
600 count = xmlOutputBufferWriteString(writer->out, "1.0"); in xmlTextWriterStartDocument()
604 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
608 if (writer->out->encoder != 0) { in xmlTextWriterStartDocument()
609 count = xmlOutputBufferWriteString(writer->out, " encoding="); in xmlTextWriterStartDocument()
613 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
618 xmlOutputBufferWriteString(writer->out, in xmlTextWriterStartDocument()
619 writer->out->encoder->name); in xmlTextWriterStartDocument()
623 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
630 count = xmlOutputBufferWriteString(writer->out, " standalone="); in xmlTextWriterStartDocument()
634 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
638 count = xmlOutputBufferWriteString(writer->out, standalone); in xmlTextWriterStartDocument()
642 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
648 count = xmlOutputBufferWriteString(writer->out, "?>\n"); in xmlTextWriterStartDocument()
666 xmlTextWriterEndDocument(xmlTextWriterPtr writer) in xmlTextWriterEndDocument() argument
673 if (writer == NULL) { in xmlTextWriterEndDocument()
674 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndDocument()
680 while ((lk = xmlListFront(writer->nodes)) != NULL) { in xmlTextWriterEndDocument()
688 count = xmlTextWriterEndElement(writer); in xmlTextWriterEndDocument()
695 count = xmlTextWriterEndPI(writer); in xmlTextWriterEndDocument()
701 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterEndDocument()
715 count = xmlTextWriterEndDTD(writer); in xmlTextWriterEndDocument()
721 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDocument()
731 if (!writer->indent) { in xmlTextWriterEndDocument()
732 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDocument()
738 sum += xmlTextWriterFlush(writer); in xmlTextWriterEndDocument()
752 xmlTextWriterStartComment(xmlTextWriterPtr writer) in xmlTextWriterStartComment() argument
759 if (writer == NULL) { in xmlTextWriterStartComment()
760 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartComment()
766 lk = xmlListFront(writer->nodes); in xmlTextWriterStartComment()
776 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartComment()
780 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartComment()
784 if (writer->indent) { in xmlTextWriterStartComment()
786 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartComment()
802 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartComment()
810 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartComment()
812 if (writer->indent) { in xmlTextWriterStartComment()
813 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartComment()
819 count = xmlOutputBufferWriteString(writer->out, "<!--"); in xmlTextWriterStartComment()
836 xmlTextWriterEndComment(xmlTextWriterPtr writer) in xmlTextWriterEndComment() argument
843 if (writer == NULL) { in xmlTextWriterEndComment()
844 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndComment()
849 lk = xmlListFront(writer->nodes); in xmlTextWriterEndComment()
851 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterEndComment()
863 count = xmlOutputBufferWriteString(writer->out, "-->"); in xmlTextWriterEndComment()
872 if (writer->indent) { in xmlTextWriterEndComment()
873 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndComment()
879 xmlListPopFront(writer->nodes); in xmlTextWriterEndComment()
894 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatComment() argument
902 rc = xmlTextWriterWriteVFormatComment(writer, format, ap); in xmlTextWriterWriteFormatComment()
919 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatComment() argument
925 if (writer == NULL) { in xmlTextWriterWriteVFormatComment()
926 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteVFormatComment()
935 rc = xmlTextWriterWriteComment(writer, buf); in xmlTextWriterWriteVFormatComment()
951 xmlTextWriterWriteComment(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteComment() argument
957 count = xmlTextWriterStartComment(writer); in xmlTextWriterWriteComment()
961 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteComment()
965 count = xmlTextWriterEndComment(writer); in xmlTextWriterWriteComment()
983 xmlTextWriterStartElement(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartElement() argument
990 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartElement()
994 lk = xmlListFront(writer->nodes); in xmlTextWriterStartElement()
1005 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartElement()
1012 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartElement()
1016 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartElement()
1020 if (writer->indent) in xmlTextWriterStartElement()
1022 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartElement()
1034 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElement()
1041 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElement()
1048 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartElement()
1050 if (writer->indent) { in xmlTextWriterStartElement()
1051 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartElement()
1055 count = xmlOutputBufferWriteString(writer->out, "<"); in xmlTextWriterStartElement()
1060 xmlOutputBufferWriteString(writer->out, (const char *) p->name); in xmlTextWriterStartElement()
1080 xmlTextWriterStartElementNS(xmlTextWriterPtr writer, in xmlTextWriterStartElementNS() argument
1088 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartElementNS()
1099 count = xmlTextWriterStartElement(writer, buf); in xmlTextWriterStartElementNS()
1109 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElementNS()
1123 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartElementNS()
1128 p->elem = xmlListFront(writer->nodes); in xmlTextWriterStartElementNS()
1130 xmlListPushFront(writer->nsstack, p); in xmlTextWriterStartElementNS()
1145 xmlTextWriterEndElement(xmlTextWriterPtr writer) in xmlTextWriterEndElement() argument
1152 if (writer == NULL) in xmlTextWriterEndElement()
1155 lk = xmlListFront(writer->nodes); in xmlTextWriterEndElement()
1157 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1158 writer->nsstack = NULL; in xmlTextWriterEndElement()
1164 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1165 writer->nsstack = NULL; in xmlTextWriterEndElement()
1172 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterEndElement()
1174 xmlListDelete(writer->nsstack); in xmlTextWriterEndElement()
1175 writer->nsstack = NULL; in xmlTextWriterEndElement()
1182 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterEndElement()
1187 if (writer->indent) /* next element needs indent */ in xmlTextWriterEndElement()
1188 writer->doindent = 1; in xmlTextWriterEndElement()
1189 count = xmlOutputBufferWriteString(writer->out, "/>"); in xmlTextWriterEndElement()
1195 if ((writer->indent) && (writer->doindent)) { in xmlTextWriterEndElement()
1196 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterEndElement()
1198 writer->doindent = 1; in xmlTextWriterEndElement()
1200 writer->doindent = 1; in xmlTextWriterEndElement()
1201 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterEndElement()
1205 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterEndElement()
1210 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndElement()
1219 if (writer->indent) { in xmlTextWriterEndElement()
1220 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndElement()
1224 xmlListPopFront(writer->nodes); in xmlTextWriterEndElement()
1237 xmlTextWriterFullEndElement(xmlTextWriterPtr writer) in xmlTextWriterFullEndElement() argument
1244 if (writer == NULL) in xmlTextWriterFullEndElement()
1247 lk = xmlListFront(writer->nodes); in xmlTextWriterFullEndElement()
1258 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterFullEndElement()
1265 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterFullEndElement()
1270 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1274 if (writer->indent) in xmlTextWriterFullEndElement()
1275 writer->doindent = 0; in xmlTextWriterFullEndElement()
1278 if ((writer->indent) && (writer->doindent)) { in xmlTextWriterFullEndElement()
1279 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterFullEndElement()
1281 writer->doindent = 1; in xmlTextWriterFullEndElement()
1283 writer->doindent = 1; in xmlTextWriterFullEndElement()
1284 count = xmlOutputBufferWriteString(writer->out, "</"); in xmlTextWriterFullEndElement()
1288 count = xmlOutputBufferWriteString(writer->out, in xmlTextWriterFullEndElement()
1293 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterFullEndElement()
1302 if (writer->indent) { in xmlTextWriterFullEndElement()
1303 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterFullEndElement()
1307 xmlListPopFront(writer->nodes); in xmlTextWriterFullEndElement()
1322 xmlTextWriterWriteFormatRaw(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatRaw() argument
1330 rc = xmlTextWriterWriteVFormatRaw(writer, format, ap); in xmlTextWriterWriteFormatRaw()
1347 xmlTextWriterWriteVFormatRaw(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteVFormatRaw() argument
1353 if (writer == NULL) in xmlTextWriterWriteVFormatRaw()
1360 rc = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteVFormatRaw()
1378 xmlTextWriterWriteRawLen(xmlTextWriterPtr writer, const xmlChar * content, in xmlTextWriterWriteRawLen() argument
1386 if (writer == NULL) { in xmlTextWriterWriteRawLen()
1387 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteRawLen()
1393 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteRawLen()
1399 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteRawLen()
1402 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteRawLen()
1408 if (writer->indent) in xmlTextWriterWriteRawLen()
1409 writer->doindent = 0; in xmlTextWriterWriteRawLen()
1413 xmlOutputBufferWrite(writer->out, len, (const char *) content); in xmlTextWriterWriteRawLen()
1432 xmlTextWriterWriteRaw(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteRaw() argument
1434 return xmlTextWriterWriteRawLen(writer, content, xmlStrlen(content)); in xmlTextWriterWriteRaw()
1448 xmlTextWriterWriteFormatString(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatString() argument
1454 if ((writer == NULL) || (format == NULL)) in xmlTextWriterWriteFormatString()
1459 rc = xmlTextWriterWriteVFormatString(writer, format, ap); in xmlTextWriterWriteFormatString()
1476 xmlTextWriterWriteVFormatString(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatString() argument
1482 if ((writer == NULL) || (format == NULL)) in xmlTextWriterWriteVFormatString()
1489 rc = xmlTextWriterWriteString(writer, buf); in xmlTextWriterWriteVFormatString()
1505 xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteString() argument
1513 if ((writer == NULL) || (content == NULL)) in xmlTextWriterWriteString()
1518 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteString()
1527 xmlOutputBufferWriteEscape(writer->out, content, NULL); in xmlTextWriterWriteString()
1533 xmlBufAttrSerializeTxtContent(writer->out->buffer, in xmlTextWriterWriteString()
1534 writer->doc, NULL, content); in xmlTextWriterWriteString()
1543 count = xmlTextWriterWriteRaw(writer, buf); in xmlTextWriterWriteString()
1650 xmlTextWriterWriteBase64(xmlTextWriterPtr writer, const char *data, in xmlTextWriterWriteBase64() argument
1658 if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) in xmlTextWriterWriteBase64()
1662 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteBase64()
1666 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBase64()
1673 if (writer->indent) in xmlTextWriterWriteBase64()
1674 writer->doindent = 0; in xmlTextWriterWriteBase64()
1677 xmlOutputBufferWriteBase64(writer->out, len, in xmlTextWriterWriteBase64()
1743 xmlTextWriterWriteBinHex(xmlTextWriterPtr writer, const char *data, in xmlTextWriterWriteBinHex() argument
1751 if ((writer == NULL) || (data == NULL) || (start < 0) || (len < 0)) in xmlTextWriterWriteBinHex()
1755 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteBinHex()
1759 count = xmlTextWriterHandleStateDependencies(writer, p); in xmlTextWriterWriteBinHex()
1766 if (writer->indent) in xmlTextWriterWriteBinHex()
1767 writer->doindent = 0; in xmlTextWriterWriteBinHex()
1770 xmlOutputBufferWriteBinHex(writer->out, len, in xmlTextWriterWriteBinHex()
1789 xmlTextWriterStartAttribute(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartAttribute() argument
1796 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartAttribute()
1800 lk = xmlListFront(writer->nodes); in xmlTextWriterStartAttribute()
1810 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartAttribute()
1816 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterStartAttribute()
1821 xmlOutputBufferWriteString(writer->out, in xmlTextWriterStartAttribute()
1826 count = xmlOutputBufferWriteString(writer->out, "="); in xmlTextWriterStartAttribute()
1830 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartAttribute()
1855 xmlTextWriterStartAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterStartAttributeNS() argument
1864 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterStartAttributeNS()
1879 nsentry.elem = xmlListFront(writer->nodes); in xmlTextWriterStartAttributeNS()
1881 curns = (xmlTextWriterNsStackEntry *)xmlListSearch(writer->nsstack, in xmlTextWriterStartAttributeNS()
1899 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartAttributeNS()
1907 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartAttributeNS()
1912 p->elem = xmlListFront(writer->nodes); in xmlTextWriterStartAttributeNS()
1914 xmlListPushFront(writer->nsstack, p); in xmlTextWriterStartAttributeNS()
1926 count = xmlTextWriterStartAttribute(writer, buf); in xmlTextWriterStartAttributeNS()
1944 xmlTextWriterEndAttribute(xmlTextWriterPtr writer) in xmlTextWriterEndAttribute() argument
1951 if (writer == NULL) in xmlTextWriterEndAttribute()
1954 lk = xmlListFront(writer->nodes); in xmlTextWriterEndAttribute()
1969 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndAttribute()
1994 xmlTextWriterWriteFormatAttribute(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatAttribute() argument
2003 rc = xmlTextWriterWriteVFormatAttribute(writer, name, format, ap); in xmlTextWriterWriteFormatAttribute()
2021 xmlTextWriterWriteVFormatAttribute(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatAttribute() argument
2028 if (writer == NULL) in xmlTextWriterWriteVFormatAttribute()
2035 rc = xmlTextWriterWriteAttribute(writer, name, buf); in xmlTextWriterWriteVFormatAttribute()
2052 xmlTextWriterWriteAttribute(xmlTextWriterPtr writer, const xmlChar * name, in xmlTextWriterWriteAttribute() argument
2059 count = xmlTextWriterStartAttribute(writer, name); in xmlTextWriterWriteAttribute()
2063 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttribute()
2067 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttribute()
2089 xmlTextWriterWriteFormatAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatAttributeNS() argument
2100 rc = xmlTextWriterWriteVFormatAttributeNS(writer, prefix, name, in xmlTextWriterWriteFormatAttributeNS()
2121 xmlTextWriterWriteVFormatAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatAttributeNS() argument
2130 if (writer == NULL) in xmlTextWriterWriteVFormatAttributeNS()
2137 rc = xmlTextWriterWriteAttributeNS(writer, prefix, name, namespaceURI, in xmlTextWriterWriteVFormatAttributeNS()
2157 xmlTextWriterWriteAttributeNS(xmlTextWriterPtr writer, in xmlTextWriterWriteAttributeNS() argument
2165 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterWriteAttributeNS()
2169 count = xmlTextWriterStartAttributeNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteAttributeNS()
2173 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteAttributeNS()
2177 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterWriteAttributeNS()
2197 xmlTextWriterWriteFormatElement(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatElement() argument
2206 rc = xmlTextWriterWriteVFormatElement(writer, name, format, ap); in xmlTextWriterWriteFormatElement()
2224 xmlTextWriterWriteVFormatElement(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatElement() argument
2231 if (writer == NULL) in xmlTextWriterWriteVFormatElement()
2238 rc = xmlTextWriterWriteElement(writer, name, buf); in xmlTextWriterWriteVFormatElement()
2255 xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar * name, in xmlTextWriterWriteElement() argument
2262 count = xmlTextWriterStartElement(writer, name); in xmlTextWriterWriteElement()
2267 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElement()
2272 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElement()
2294 xmlTextWriterWriteFormatElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatElementNS() argument
2305 rc = xmlTextWriterWriteVFormatElementNS(writer, prefix, name, in xmlTextWriterWriteFormatElementNS()
2326 xmlTextWriterWriteVFormatElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatElementNS() argument
2335 if (writer == NULL) in xmlTextWriterWriteVFormatElementNS()
2342 rc = xmlTextWriterWriteElementNS(writer, prefix, name, namespaceURI, in xmlTextWriterWriteVFormatElementNS()
2362 xmlTextWriterWriteElementNS(xmlTextWriterPtr writer, in xmlTextWriterWriteElementNS() argument
2370 if ((writer == NULL) || (name == NULL) || (*name == '\0')) in xmlTextWriterWriteElementNS()
2375 xmlTextWriterStartElementNS(writer, prefix, name, namespaceURI); in xmlTextWriterWriteElementNS()
2379 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteElementNS()
2383 count = xmlTextWriterEndElement(writer); in xmlTextWriterWriteElementNS()
2401 xmlTextWriterStartPI(xmlTextWriterPtr writer, const xmlChar * target) in xmlTextWriterStartPI() argument
2408 if ((writer == NULL) || (target == NULL) || (*target == '\0')) in xmlTextWriterStartPI()
2412 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartPI()
2418 lk = xmlListFront(writer->nodes); in xmlTextWriterStartPI()
2424 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartPI()
2431 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartPI()
2435 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartPI()
2447 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartPI()
2459 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartPI()
2466 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartPI()
2473 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartPI()
2475 count = xmlOutputBufferWriteString(writer->out, "<?"); in xmlTextWriterStartPI()
2480 xmlOutputBufferWriteString(writer->out, (const char *) p->name); in xmlTextWriterStartPI()
2497 xmlTextWriterEndPI(xmlTextWriterPtr writer) in xmlTextWriterEndPI() argument
2504 if (writer == NULL) in xmlTextWriterEndPI()
2507 lk = xmlListFront(writer->nodes); in xmlTextWriterEndPI()
2519 count = xmlOutputBufferWriteString(writer->out, "?>"); in xmlTextWriterEndPI()
2528 if (writer->indent) { in xmlTextWriterEndPI()
2529 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndPI()
2535 xmlListPopFront(writer->nodes); in xmlTextWriterEndPI()
2551 xmlTextWriterWriteFormatPI(xmlTextWriterPtr writer, const xmlChar * target, in xmlTextWriterWriteFormatPI() argument
2559 rc = xmlTextWriterWriteVFormatPI(writer, target, format, ap); in xmlTextWriterWriteFormatPI()
2577 xmlTextWriterWriteVFormatPI(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatPI() argument
2584 if (writer == NULL) in xmlTextWriterWriteVFormatPI()
2591 rc = xmlTextWriterWritePI(writer, target, buf); in xmlTextWriterWriteVFormatPI()
2608 xmlTextWriterWritePI(xmlTextWriterPtr writer, const xmlChar * target, in xmlTextWriterWritePI() argument
2615 count = xmlTextWriterStartPI(writer, target); in xmlTextWriterWritePI()
2620 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWritePI()
2625 count = xmlTextWriterEndPI(writer); in xmlTextWriterWritePI()
2642 xmlTextWriterStartCDATA(xmlTextWriterPtr writer) in xmlTextWriterStartCDATA() argument
2649 if (writer == NULL) in xmlTextWriterStartCDATA()
2653 lk = xmlListFront(writer->nodes); in xmlTextWriterStartCDATA()
2664 count = xmlTextWriterEndAttribute(writer); in xmlTextWriterStartCDATA()
2671 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterStartCDATA()
2675 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterStartCDATA()
2682 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartCDATA()
2694 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartCDATA()
2702 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartCDATA()
2704 count = xmlOutputBufferWriteString(writer->out, "<![CDATA["); in xmlTextWriterStartCDATA()
2721 xmlTextWriterEndCDATA(xmlTextWriterPtr writer) in xmlTextWriterEndCDATA() argument
2728 if (writer == NULL) in xmlTextWriterEndCDATA()
2731 lk = xmlListFront(writer->nodes); in xmlTextWriterEndCDATA()
2742 count = xmlOutputBufferWriteString(writer->out, "]]>"); in xmlTextWriterEndCDATA()
2751 xmlListPopFront(writer->nodes); in xmlTextWriterEndCDATA()
2766 xmlTextWriterWriteFormatCDATA(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteFormatCDATA() argument
2774 rc = xmlTextWriterWriteVFormatCDATA(writer, format, ap); in xmlTextWriterWriteFormatCDATA()
2791 xmlTextWriterWriteVFormatCDATA(xmlTextWriterPtr writer, const char *format, in xmlTextWriterWriteVFormatCDATA() argument
2797 if (writer == NULL) in xmlTextWriterWriteVFormatCDATA()
2804 rc = xmlTextWriterWriteCDATA(writer, buf); in xmlTextWriterWriteVFormatCDATA()
2820 xmlTextWriterWriteCDATA(xmlTextWriterPtr writer, const xmlChar * content) in xmlTextWriterWriteCDATA() argument
2826 count = xmlTextWriterStartCDATA(writer); in xmlTextWriterWriteCDATA()
2831 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteCDATA()
2836 count = xmlTextWriterEndCDATA(writer); in xmlTextWriterWriteCDATA()
2856 xmlTextWriterStartDTD(xmlTextWriterPtr writer, in xmlTextWriterStartDTD() argument
2865 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTD()
2869 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTD()
2871 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDTD()
2879 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTD()
2886 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTD()
2893 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTD()
2895 count = xmlOutputBufferWriteString(writer->out, "<!DOCTYPE "); in xmlTextWriterStartDTD()
2899 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTD()
2906 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterStartDTD()
2911 if (writer->indent) in xmlTextWriterStartDTD()
2912 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2914 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2919 count = xmlOutputBufferWriteString(writer->out, "PUBLIC "); in xmlTextWriterStartDTD()
2924 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2930 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterStartDTD()
2935 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2943 if (writer->indent) in xmlTextWriterStartDTD()
2944 count = xmlOutputBufferWrite(writer->out, 1, "\n"); in xmlTextWriterStartDTD()
2946 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2950 count = xmlOutputBufferWriteString(writer->out, "SYSTEM "); in xmlTextWriterStartDTD()
2955 if (writer->indent) in xmlTextWriterStartDTD()
2956 count = xmlOutputBufferWriteString(writer->out, "\n "); in xmlTextWriterStartDTD()
2958 count = xmlOutputBufferWrite(writer->out, 1, " "); in xmlTextWriterStartDTD()
2964 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2970 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterStartDTD()
2975 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDTD()
2993 xmlTextWriterEndDTD(xmlTextWriterPtr writer) in xmlTextWriterEndDTD() argument
3001 if (writer == NULL) in xmlTextWriterEndDTD()
3007 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTD()
3015 count = xmlOutputBufferWriteString(writer->out, "]"); in xmlTextWriterEndDTD()
3021 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTD()
3023 if (writer->indent) { in xmlTextWriterEndDTD()
3027 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTD()
3030 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTD()
3034 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterEndDTD()
3038 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterEndDTD()
3043 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterEndDTD()
3046 count = xmlTextWriterEndComment(writer); in xmlTextWriterEndDTD()
3075 xmlTextWriterWriteFormatDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTD() argument
3085 rc = xmlTextWriterWriteVFormatDTD(writer, name, pubid, sysid, format, in xmlTextWriterWriteFormatDTD()
3106 xmlTextWriterWriteVFormatDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTD() argument
3115 if (writer == NULL) in xmlTextWriterWriteVFormatDTD()
3122 rc = xmlTextWriterWriteDTD(writer, name, pubid, sysid, buf); in xmlTextWriterWriteVFormatDTD()
3141 xmlTextWriterWriteDTD(xmlTextWriterPtr writer, in xmlTextWriterWriteDTD() argument
3150 count = xmlTextWriterStartDTD(writer, name, pubid, sysid); in xmlTextWriterWriteDTD()
3155 count = xmlTextWriterWriteString(writer, subset); in xmlTextWriterWriteDTD()
3160 count = xmlTextWriterEndDTD(writer); in xmlTextWriterWriteDTD()
3178 xmlTextWriterStartDTDElement(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartDTDElement() argument
3185 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDElement()
3189 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDElement()
3198 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDElement()
3202 if (writer->indent) { in xmlTextWriterStartDTDElement()
3203 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDElement()
3221 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDElement()
3228 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDElement()
3235 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDElement()
3237 if (writer->indent) { in xmlTextWriterStartDTDElement()
3238 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDElement()
3244 count = xmlOutputBufferWriteString(writer->out, "<!ELEMENT "); in xmlTextWriterStartDTDElement()
3248 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDElement()
3265 xmlTextWriterEndDTDElement(xmlTextWriterPtr writer) in xmlTextWriterEndDTDElement() argument
3272 if (writer == NULL) in xmlTextWriterEndDTDElement()
3276 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDElement()
3287 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDElement()
3296 if (writer->indent) { in xmlTextWriterEndDTDElement()
3297 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDElement()
3303 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDElement()
3319 xmlTextWriterWriteFormatDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDElement() argument
3328 rc = xmlTextWriterWriteVFormatDTDElement(writer, name, format, ap); in xmlTextWriterWriteFormatDTDElement()
3346 xmlTextWriterWriteVFormatDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDElement() argument
3353 if (writer == NULL) in xmlTextWriterWriteVFormatDTDElement()
3360 rc = xmlTextWriterWriteDTDElement(writer, name, buf); in xmlTextWriterWriteVFormatDTDElement()
3377 xmlTextWriterWriteDTDElement(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDElement() argument
3387 count = xmlTextWriterStartDTDElement(writer, name); in xmlTextWriterWriteDTDElement()
3392 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDElement()
3397 count = xmlTextWriterEndDTDElement(writer); in xmlTextWriterWriteDTDElement()
3415 xmlTextWriterStartDTDAttlist(xmlTextWriterPtr writer, const xmlChar * name) in xmlTextWriterStartDTDAttlist() argument
3422 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDAttlist()
3426 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDAttlist()
3435 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDAttlist()
3439 if (writer->indent) { in xmlTextWriterStartDTDAttlist()
3440 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDAttlist()
3458 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDAttlist()
3465 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDAttlist()
3472 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDAttlist()
3474 if (writer->indent) { in xmlTextWriterStartDTDAttlist()
3475 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDAttlist()
3481 count = xmlOutputBufferWriteString(writer->out, "<!ATTLIST "); in xmlTextWriterStartDTDAttlist()
3485 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDAttlist()
3502 xmlTextWriterEndDTDAttlist(xmlTextWriterPtr writer) in xmlTextWriterEndDTDAttlist() argument
3509 if (writer == NULL) in xmlTextWriterEndDTDAttlist()
3513 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDAttlist()
3524 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDAttlist()
3533 if (writer->indent) { in xmlTextWriterEndDTDAttlist()
3534 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDAttlist()
3540 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDAttlist()
3556 xmlTextWriterWriteFormatDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDAttlist() argument
3565 rc = xmlTextWriterWriteVFormatDTDAttlist(writer, name, format, ap); in xmlTextWriterWriteFormatDTDAttlist()
3583 xmlTextWriterWriteVFormatDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDAttlist() argument
3590 if (writer == NULL) in xmlTextWriterWriteVFormatDTDAttlist()
3597 rc = xmlTextWriterWriteDTDAttlist(writer, name, buf); in xmlTextWriterWriteVFormatDTDAttlist()
3614 xmlTextWriterWriteDTDAttlist(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDAttlist() argument
3624 count = xmlTextWriterStartDTDAttlist(writer, name); in xmlTextWriterWriteDTDAttlist()
3629 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDAttlist()
3634 count = xmlTextWriterEndDTDAttlist(writer); in xmlTextWriterWriteDTDAttlist()
3653 xmlTextWriterStartDTDEntity(xmlTextWriterPtr writer, in xmlTextWriterStartDTDEntity() argument
3661 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterStartDTDEntity()
3665 lk = xmlListFront(writer->nodes); in xmlTextWriterStartDTDEntity()
3672 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterStartDTDEntity()
3676 if (writer->indent) { in xmlTextWriterStartDTDEntity()
3678 xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterStartDTDEntity()
3697 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDEntity()
3704 xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, in xmlTextWriterStartDTDEntity()
3715 xmlListPushFront(writer->nodes, p); in xmlTextWriterStartDTDEntity()
3717 if (writer->indent) { in xmlTextWriterStartDTDEntity()
3718 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterStartDTDEntity()
3724 count = xmlOutputBufferWriteString(writer->out, "<!ENTITY "); in xmlTextWriterStartDTDEntity()
3730 count = xmlOutputBufferWriteString(writer->out, "% "); in xmlTextWriterStartDTDEntity()
3736 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterStartDTDEntity()
3753 xmlTextWriterEndDTDEntity(xmlTextWriterPtr writer) in xmlTextWriterEndDTDEntity() argument
3760 if (writer == NULL) in xmlTextWriterEndDTDEntity()
3764 lk = xmlListFront(writer->nodes); in xmlTextWriterEndDTDEntity()
3774 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterEndDTDEntity()
3781 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterEndDTDEntity()
3790 if (writer->indent) { in xmlTextWriterEndDTDEntity()
3791 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterEndDTDEntity()
3797 xmlListPopFront(writer->nodes); in xmlTextWriterEndDTDEntity()
3814 xmlTextWriterWriteFormatDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteFormatDTDInternalEntity() argument
3824 rc = xmlTextWriterWriteVFormatDTDInternalEntity(writer, pe, name, in xmlTextWriterWriteFormatDTDInternalEntity()
3844 xmlTextWriterWriteVFormatDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteVFormatDTDInternalEntity() argument
3853 if (writer == NULL) in xmlTextWriterWriteVFormatDTDInternalEntity()
3860 rc = xmlTextWriterWriteDTDInternalEntity(writer, pe, name, buf); in xmlTextWriterWriteVFormatDTDInternalEntity()
3881 xmlTextWriterWriteDTDEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDEntity() argument
3895 return xmlTextWriterWriteDTDInternalEntity(writer, pe, name, in xmlTextWriterWriteDTDEntity()
3898 return xmlTextWriterWriteDTDExternalEntity(writer, pe, name, pubid, in xmlTextWriterWriteDTDEntity()
3914 xmlTextWriterWriteDTDInternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDInternalEntity() argument
3926 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDInternalEntity()
3931 count = xmlTextWriterWriteString(writer, content); in xmlTextWriterWriteDTDInternalEntity()
3936 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDInternalEntity()
3958 xmlTextWriterWriteDTDExternalEntity(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDExternalEntity() argument
3974 count = xmlTextWriterStartDTDEntity(writer, pe, name); in xmlTextWriterWriteDTDExternalEntity()
3980 xmlTextWriterWriteDTDExternalEntityContents(writer, pubid, sysid, in xmlTextWriterWriteDTDExternalEntity()
3986 count = xmlTextWriterEndDTDEntity(writer); in xmlTextWriterWriteDTDExternalEntity()
4006 xmlTextWriterWriteDTDExternalEntityContents(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDExternalEntityContents() argument
4016 if (writer == NULL) { in xmlTextWriterWriteDTDExternalEntityContents()
4017 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4023 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteDTDExternalEntityContents()
4025 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4039 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4045 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4052 xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, in xmlTextWriterWriteDTDExternalEntityContents()
4057 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDExternalEntityContents()
4062 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4068 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterWriteDTDExternalEntityContents()
4073 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4081 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDExternalEntityContents()
4087 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDExternalEntityContents()
4092 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4098 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterWriteDTDExternalEntityContents()
4103 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDExternalEntityContents()
4110 count = xmlOutputBufferWriteString(writer->out, " NDATA "); in xmlTextWriterWriteDTDExternalEntityContents()
4116 xmlOutputBufferWriteString(writer->out, in xmlTextWriterWriteDTDExternalEntityContents()
4138 xmlTextWriterWriteDTDNotation(xmlTextWriterPtr writer, in xmlTextWriterWriteDTDNotation() argument
4147 if (writer == NULL || name == NULL || *name == '\0') in xmlTextWriterWriteDTDNotation()
4151 lk = xmlListFront(writer->nodes); in xmlTextWriterWriteDTDNotation()
4160 count = xmlOutputBufferWriteString(writer->out, " ["); in xmlTextWriterWriteDTDNotation()
4164 if (writer->indent) { in xmlTextWriterWriteDTDNotation()
4165 count = xmlOutputBufferWriteString(writer->out, "\n"); in xmlTextWriterWriteDTDNotation()
4179 if (writer->indent) { in xmlTextWriterWriteDTDNotation()
4180 count = xmlTextWriterWriteIndent(writer); in xmlTextWriterWriteDTDNotation()
4186 count = xmlOutputBufferWriteString(writer->out, "<!NOTATION "); in xmlTextWriterWriteDTDNotation()
4190 count = xmlOutputBufferWriteString(writer->out, (const char *) name); in xmlTextWriterWriteDTDNotation()
4196 count = xmlOutputBufferWriteString(writer->out, " PUBLIC "); in xmlTextWriterWriteDTDNotation()
4200 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4205 xmlOutputBufferWriteString(writer->out, (const char *) pubid); in xmlTextWriterWriteDTDNotation()
4209 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4217 count = xmlOutputBufferWriteString(writer->out, " SYSTEM"); in xmlTextWriterWriteDTDNotation()
4222 count = xmlOutputBufferWriteString(writer->out, " "); in xmlTextWriterWriteDTDNotation()
4226 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4231 xmlOutputBufferWriteString(writer->out, (const char *) sysid); in xmlTextWriterWriteDTDNotation()
4235 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterWriteDTDNotation()
4241 count = xmlOutputBufferWriteString(writer->out, ">"); in xmlTextWriterWriteDTDNotation()
4258 xmlTextWriterFlush(xmlTextWriterPtr writer) in xmlTextWriterFlush() argument
4262 if (writer == NULL) in xmlTextWriterFlush()
4265 if (writer->out == NULL) in xmlTextWriterFlush()
4268 count = xmlOutputBufferFlush(writer->out); in xmlTextWriterFlush()
4338 xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer) in xmlTextWriterOutputNSDecl() argument
4346 while (!xmlListEmpty(writer->nsstack)) { in xmlTextWriterOutputNSDecl()
4350 lk = xmlListFront(writer->nsstack); in xmlTextWriterOutputNSDecl()
4358 xmlListPopFront(writer->nsstack); in xmlTextWriterOutputNSDecl()
4361 count = xmlTextWriterWriteAttribute(writer, prefix, namespaceURI); in xmlTextWriterOutputNSDecl()
4366 xmlListDelete(writer->nsstack); in xmlTextWriterOutputNSDecl()
4367 writer->nsstack = NULL; in xmlTextWriterOutputNSDecl()
4604 xmlTextWriterSetIndent(xmlTextWriterPtr writer, int indent) in xmlTextWriterSetIndent() argument
4606 if ((writer == NULL) || (indent < 0)) in xmlTextWriterSetIndent()
4609 writer->indent = indent; in xmlTextWriterSetIndent()
4610 writer->doindent = 1; in xmlTextWriterSetIndent()
4625 xmlTextWriterSetIndentString(xmlTextWriterPtr writer, const xmlChar * str) in xmlTextWriterSetIndentString() argument
4627 if ((writer == NULL) || (!str)) in xmlTextWriterSetIndentString()
4630 if (writer->ichar != NULL) in xmlTextWriterSetIndentString()
4631 xmlFree(writer->ichar); in xmlTextWriterSetIndentString()
4632 writer->ichar = xmlStrdup(str); in xmlTextWriterSetIndentString()
4634 if (!writer->ichar) in xmlTextWriterSetIndentString()
4650 xmlTextWriterSetQuoteChar(xmlTextWriterPtr writer, xmlChar quotechar) in xmlTextWriterSetQuoteChar() argument
4652 if ((writer == NULL) || ((quotechar != '\'') && (quotechar != '"'))) in xmlTextWriterSetQuoteChar()
4655 writer->qchar = quotechar; in xmlTextWriterSetQuoteChar()
4669 xmlTextWriterWriteIndent(xmlTextWriterPtr writer) in xmlTextWriterWriteIndent() argument
4675 lksize = xmlListSize(writer->nodes); in xmlTextWriterWriteIndent()
4679 ret = xmlOutputBufferWriteString(writer->out, in xmlTextWriterWriteIndent()
4680 (const char *) writer->ichar); in xmlTextWriterWriteIndent()
4698 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer, in xmlTextWriterHandleStateDependencies() argument
4705 if (writer == NULL) in xmlTextWriterHandleStateDependencies()
4718 count = xmlTextWriterOutputNSDecl(writer); in xmlTextWriterHandleStateDependencies()
4745 extra[1] = writer->qchar; in xmlTextWriterHandleStateDependencies()
4754 count = xmlOutputBufferWriteString(writer->out, extra); in xmlTextWriterHandleStateDependencies()