pantry/projects/gnome.org/libxml2/test.c
2022-08-02 07:15:02 -04:00

10 lines
217 B
C

#include <libxml/tree.h>
int main() {
xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0");
xmlNodePtr root_node = xmlNewNode(NULL, BAD_CAST "root");
xmlDocSetRootElement(doc, root_node);
xmlFreeDoc(doc);
return 0;
}