2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstsoap1.c,v 1.3 2005-06-25 15:46:07 adam Exp $
10 #include <libxml/parser.h>
13 int main(int argc, char **argv)
22 xmlDocPtr doc = xmlNewDoc("1.0");
24 const char *val = "jordbær"; /* makes xmlDocDumpMemory hang .. */
26 const char *val = "jordbaer"; /* OK */
28 xmlNodePtr top = xmlNewNode(0, "top");
30 xmlNewTextChild(top, 0, "sub", val);
31 xmlDocSetRootElement(doc, top);
33 xmlDocDumpMemory(doc, &buf_out, &len_out);
35 printf("%*s", len_out, buf_out);
46 * indent-tabs-mode: nil
48 * vim: shiftwidth=4 tabstop=8 expandtab