io2.c revision d46ee884c41b808b239563b1978468aae12e33a2
/**
* 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