Diff for /embedaddon/libxml2/doc/examples/testWriter.c between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 23:37:59 version 1.1.1.2, 2013/07/22 01:22:27
Line 160  testXmlwriterFilename(const char *uri) Line 160  testXmlwriterFilename(const char *uri)
   
     /* Write an element named "X_ORDER_ID" as child of HEADER. */      /* Write an element named "X_ORDER_ID" as child of HEADER. */
     rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",      rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",
                                         "%010d", 53535L);                                         "%010d", 53535);
     if (rc < 0) {      if (rc < 0) {
         printf          printf
             ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n");              ("testXmlwriterFilename: Error at xmlTextWriterWriteFormatElement\n");
Line 439  testXmlwriterMemory(const char *file) Line 439  testXmlwriterMemory(const char *file)
   
     /* Write an element named "X_ORDER_ID" as child of HEADER. */      /* Write an element named "X_ORDER_ID" as child of HEADER. */
     rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",      rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",
                                         "%010d", 53535L);                                         "%010d", 53535);
     if (rc < 0) {      if (rc < 0) {
         printf          printf
             ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n");              ("testXmlwriterMemory: Error at xmlTextWriterWriteFormatElement\n");
Line 468  testXmlwriterMemory(const char *file) Line 468  testXmlwriterMemory(const char *file)
     /* Write an element named "NAME_2" as child of HEADER. */      /* Write an element named "NAME_2" as child of HEADER. */
     tmp = ConvertInput("Jörg", MY_ENCODING);      tmp = ConvertInput("Jörg", MY_ENCODING);
     rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp);      rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_2", tmp);
                                   
     if (rc < 0) {      if (rc < 0) {
         printf          printf
             ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n");              ("testXmlwriterMemory: Error at xmlTextWriterWriteElement\n");
Line 709  testXmlwriterDoc(const char *file) Line 709  testXmlwriterDoc(const char *file)
   
     /* Write an element named "X_ORDER_ID" as child of HEADER. */      /* Write an element named "X_ORDER_ID" as child of HEADER. */
     rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",      rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",
                                         "%010d", 53535L);                                         "%010d", 53535);
     if (rc < 0) {      if (rc < 0) {
         printf          printf
             ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n");              ("testXmlwriterDoc: Error at xmlTextWriterWriteFormatElement\n");
Line 975  testXmlwriterTree(const char *file) Line 975  testXmlwriterTree(const char *file)
   
     /* Write an element named "X_ORDER_ID" as child of HEADER. */      /* Write an element named "X_ORDER_ID" as child of HEADER. */
     rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",      rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID",
                                         "%010d", 53535L);                                         "%010d", 53535);
     if (rc < 0) {      if (rc < 0) {
         printf          printf
             ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n");              ("testXmlwriterTree: Error at xmlTextWriterWriteFormatElement\n");

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>