* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: soap.c,v 1.13 2006-03-01 23:24:25 adam Exp $
+ * $Id: soap.c,v 1.15 2006-10-24 08:05:45 adam Exp $
*/
/**
* \file soap.c
#include <yaz/soap.h>
-#if HAVE_XML2
+#if YAZ_HAVE_XML2
#include <libxml/parser.h>
#include <libxml/tree.h>
xmlDocSetRootElement(doc, body_ptr->children);
body_ptr->children = 0;
xmlFreeNode(envelope_ptr);
+ if (!encoding)
+ encoding = "utf-8";
}
if (stylesheet)
{