[xml] [libxml2] xmlwriter in vc++ 6.0
- From: Karol Rewera <karolrewera yahoo com>
- To: xml gnome org
- Subject: [xml] [libxml2] xmlwriter in vc++ 6.0
- Date: Wed, 28 Apr 2004 07:26:12 -0700 (PDT)
Hello!
I'm trying to create XML document with xml writer in Visual Studion 6.0. Here's code fragment:
LIBXML_TEST_VERSION;
xmlTextWriterPtr writer;
xmlDocPtr doc;
writer = xmlNewTextWriterDoc(&doc, 0);
xmlTextWriterStartDocument(writer, NULL, NULL, NULL);
xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE");
xmlTextWriterEndElement(writer);
xmlTextWriterEndDocument(writer);
xmlFreeTextWriter(writer);
xmlNewTextWriterDoc(&doc, 0) works fine, but xmlTextWriterStartDocument, xmlTextWriterStartElement wtires no bytes to doc (functions returns 0 ) :(
What I'm doing wrong, help
Karol Rewera
--
Pozdrawiam,
Karol Rewera
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]