io2.c revision 38ae7e4efe803ea78b6499cd05a394db32623e41
/**
* section: InputOutput
* synopsis: Output to char buffer
* purpose: Demonstrate the use of xmlDocDumpMemory
* to output document to a character buffer
* usage: io2
* author: John Fleck
* copy: see Copyright for the status of this software.
*/
#if defined(LIBXML_TREE_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
int
main(void)
{
xmlNodePtr n;
int buffersize;
/*
* Create the document.
*/
xmlDocSetRootElement(doc, n);
/*
* Dump the document to a buffer and print it
* for demonstration purposes.
*/
/*
* Free associated memory.
*/
return (0);
}
#else
#include <stdio.h>
int
main(void)
{
"library not configured with tree and output support\n");
return (1);
}
#endif