pantry/projects/gnome.org/libxml2/test.c

10 lines
217 B
C
Raw Normal View History

2022-08-02 14:15:02 +03:00
#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;
}