Lines Matching refs:writer
72 xmlTextWriterPtr writer; in testXmlwriterFilename() local
76 writer = xmlNewTextWriterFilename(uri, 0); in testXmlwriterFilename()
77 if (writer == NULL) { in testXmlwriterFilename()
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
133 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterFilename()
143 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterFilename()
154 rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); in testXmlwriterFilename()
162 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", in testXmlwriterFilename()
171 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", in testXmlwriterFilename()
181 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); in testXmlwriterFilename()
191 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); in testXmlwriterFilename()
200 rc = xmlTextWriterEndElement(writer); in testXmlwriterFilename()
208 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); in testXmlwriterFilename()
216 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterFilename()
224 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterFilename()
233 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterFilename()
242 rc = xmlTextWriterEndElement(writer); in testXmlwriterFilename()
250 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterFilename()
258 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterFilename()
267 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterFilename()
276 rc = xmlTextWriterEndElement(writer); in testXmlwriterFilename()
284 rc = xmlTextWriterEndElement(writer); in testXmlwriterFilename()
292 rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); in testXmlwriterFilename()
300 rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", in testXmlwriterFilename()
309 rc = xmlTextWriterEndElement(writer); in testXmlwriterFilename()
320 rc = xmlTextWriterEndDocument(writer); in testXmlwriterFilename()
327 xmlFreeTextWriter(writer); in testXmlwriterFilename()
340 xmlTextWriterPtr writer; in testXmlwriterMemory() local
355 writer = xmlNewTextWriterMemory(buf, 0); in testXmlwriterMemory()
356 if (writer == NULL) { in testXmlwriterMemory()
364 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterMemory()
373 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterMemory()
386 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterMemory()
395 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterMemory()
403 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterMemory()
412 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterMemory()
422 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterMemory()
433 rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); in testXmlwriterMemory()
441 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", in testXmlwriterMemory()
450 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", in testXmlwriterMemory()
460 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); in testXmlwriterMemory()
470 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); in testXmlwriterMemory()
480 rc = xmlTextWriterEndElement(writer); in testXmlwriterMemory()
487 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); in testXmlwriterMemory()
495 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterMemory()
503 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterMemory()
512 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterMemory()
521 rc = xmlTextWriterEndElement(writer); in testXmlwriterMemory()
528 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterMemory()
536 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterMemory()
545 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterMemory()
554 rc = xmlTextWriterEndElement(writer); in testXmlwriterMemory()
561 rc = xmlTextWriterEndElement(writer); in testXmlwriterMemory()
568 rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); in testXmlwriterMemory()
576 rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", in testXmlwriterMemory()
585 rc = xmlTextWriterEndElement(writer); in testXmlwriterMemory()
595 rc = xmlTextWriterEndDocument(writer); in testXmlwriterMemory()
601 xmlFreeTextWriter(writer); in testXmlwriterMemory()
626 xmlTextWriterPtr writer; in testXmlwriterDoc() local
632 writer = xmlNewTextWriterDoc(&doc, 0); in testXmlwriterDoc()
633 if (writer == NULL) { in testXmlwriterDoc()
641 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterDoc()
649 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterDoc()
661 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterDoc()
669 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterDoc()
676 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterDoc()
684 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterDoc()
693 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterDoc()
704 rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); in testXmlwriterDoc()
711 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", in testXmlwriterDoc()
720 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", in testXmlwriterDoc()
730 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); in testXmlwriterDoc()
739 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); in testXmlwriterDoc()
747 rc = xmlTextWriterEndElement(writer); in testXmlwriterDoc()
754 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); in testXmlwriterDoc()
761 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterDoc()
768 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterDoc()
776 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterDoc()
785 rc = xmlTextWriterEndElement(writer); in testXmlwriterDoc()
792 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterDoc()
799 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterDoc()
807 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterDoc()
816 rc = xmlTextWriterEndElement(writer); in testXmlwriterDoc()
823 rc = xmlTextWriterEndElement(writer); in testXmlwriterDoc()
830 rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); in testXmlwriterDoc()
837 rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", in testXmlwriterDoc()
845 rc = xmlTextWriterEndElement(writer); in testXmlwriterDoc()
855 rc = xmlTextWriterEndDocument(writer); in testXmlwriterDoc()
861 xmlFreeTextWriter(writer); in testXmlwriterDoc()
878 xmlTextWriterPtr writer; in testXmlwriterTree() local
904 writer = xmlNewTextWriterTree(doc, node, 0); in testXmlwriterTree()
905 if (writer == NULL) { in testXmlwriterTree()
913 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterTree()
925 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterTree()
933 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterTree()
940 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterTree()
949 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterTree()
959 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterTree()
970 rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); in testXmlwriterTree()
977 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", in testXmlwriterTree()
986 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", in testXmlwriterTree()
996 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); in testXmlwriterTree()
1005 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp); in testXmlwriterTree()
1013 rc = xmlTextWriterEndElement(writer); in testXmlwriterTree()
1020 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRIES"); in testXmlwriterTree()
1027 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterTree()
1034 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterTree()
1042 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterTree()
1051 rc = xmlTextWriterEndElement(writer); in testXmlwriterTree()
1058 rc = xmlTextWriterStartElement(writer, BAD_CAST "ENTRY"); in testXmlwriterTree()
1065 rc = xmlTextWriterWriteElement(writer, BAD_CAST "ARTICLE", in testXmlwriterTree()
1073 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "ENTRY_NO", "%d", in testXmlwriterTree()
1082 rc = xmlTextWriterEndElement(writer); in testXmlwriterTree()
1089 rc = xmlTextWriterEndElement(writer); in testXmlwriterTree()
1096 rc = xmlTextWriterStartElement(writer, BAD_CAST "FOOTER"); in testXmlwriterTree()
1103 rc = xmlTextWriterWriteElement(writer, BAD_CAST "TEXT", in testXmlwriterTree()
1111 rc = xmlTextWriterEndElement(writer); in testXmlwriterTree()
1121 rc = xmlTextWriterEndDocument(writer); in testXmlwriterTree()
1127 xmlFreeTextWriter(writer); in testXmlwriterTree()