2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstsoap1.c,v 1.8 2006-10-04 16:59:34 mike Exp $
10 #include <libxml/parser.h>
22 const char *val = "jordbær"; /* makes xmlDocDumpMemory hang .. */
24 const char *val = "jordbaer"; /* OK */
26 doc = xmlNewDoc(BAD_CAST "1.0");
29 top = xmlNewNode(0, BAD_CAST "top");
32 xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val);
33 xmlDocSetRootElement(doc, top);
35 xmlDocDumpMemory(doc, &buf_out, &len_out);
37 printf("%*s", len_out, buf_out);
45 int main(int argc, char **argv)
47 YAZ_CHECK_INIT(argc, argv);
59 * indent-tabs-mode: nil
61 * vim: shiftwidth=4 tabstop=8 expandtab