1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2009 Index Data
3 * See the file LICENSE for details.
8 #include <libxml/parser.h>
20 const char *val = "jordb" "\xe6" "r"; /* makes xmlDocDumpMemory hang .. */
22 const char *val = "jordbaer"; /* OK */
24 doc = xmlNewDoc(BAD_CAST "1.0");
27 top = xmlNewNode(0, BAD_CAST "top");
30 xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val);
31 xmlDocSetRootElement(doc, top);
33 xmlDocDumpMemory(doc, &buf_out, &len_out);
35 printf("%*s", len_out, buf_out);
43 int main(int argc, char **argv)
45 YAZ_CHECK_INIT(argc, argv);
57 * indent-tabs-mode: nil
59 * vim: shiftwidth=4 tabstop=8 expandtab