1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2010 Index Data
3 * See the file LICENSE for details.
11 #include <libxml/parser.h>
23 const char *val = "jordb" "\xe6" "r"; /* makes xmlDocDumpMemory hang .. */
25 const char *val = "jordbaer"; /* OK */
27 doc = xmlNewDoc(BAD_CAST "1.0");
30 top = xmlNewNode(0, BAD_CAST "top");
33 xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val);
34 xmlDocSetRootElement(doc, top);
36 xmlDocDumpMemory(doc, &buf_out, &len_out);
38 printf("%*s", len_out, buf_out);
46 int main(int argc, char **argv)
48 YAZ_CHECK_INIT(argc, argv);
60 * c-file-style: "Stroustrup"
61 * indent-tabs-mode: nil
63 * vim: shiftwidth=4 tabstop=8 expandtab