-/* $Id: tst_icu_I18N.c,v 1.7 2007-10-25 08:32:51 marc Exp $
+/* $Id: tst_icu_I18N.c,v 1.8 2007-10-25 08:42:21 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
struct icu_chain * chain = 0;
- const char * xml_str = "<icu_chain>"
+ const char * xml_str = "<icu>"
"<normalize rule=\"[:Control:] Any-Remove\"/>"
"<tokenize rule=\"l\"/>"
"<normalize rule=\"[[:WhiteSpace:][:Punctuation:]] Remove\"/>"
"<display/>"
"<casemap rule=\"l\"/>"
- "</icu_chain>";
+ "</icu>";
xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
UErrorCode status = U_ZERO_ERROR;
struct icu_chain * chain = 0;
- const char * xml_str = "<icu_chain>"
+ const char * xml_str = "<icu>"
/* if the first rule is normalize instead. Then it works */
#if 0
"<normalize rule=\"[[:WhiteSpace:][:Punctuation:]] Remove\"/>"
"<display/>"
"<casemap rule=\"l\"/>"
- "</icu_chain>";
+ "</icu>";
xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
UErrorCode status = U_ZERO_ERROR;
struct icu_chain * chain = 0;
- const char * xml_str = "<icu_chain>"
+ const char * xml_str = "<icu>"
"<tokenize rule=\"w\"/>"
"<normalize rule=\"[[:WhiteSpace:][:Punctuation:]] Remove\"/>"
- "</icu_chain>";
+ "</icu>";
xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
xmlNode *xml_node = xmlDocGetRootElement(doc);