Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
8 subscribers
Views
2287 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Issue with xpathsnippet no support for German „Umlaute” like äöäÖÄÖ H
andreasw
over 11 years ago
Issue with xpathsnippet no support for German „Umlaute” like äöäÖÄÖ
Hi.
If a got a XML like this:
?xml version=""1.0"" encoding=""UTF-8""?>
<Values>
<Value>
<Address>Bäckstreet 0</Address>
</Value>
<Value>
<Address>Backstreet 1</Address>
</Value>
</Values>
And use
xpathsnippet(MY_XML_LIKE_ABOVE "/Values/Value/Address/text()")
Evaluating with xpathsnipped fails with :
“The rule contains an expression that cannot be tested”
If I remove the “ä” everything goes well.
Any ideas ?
Many thans in advance
...
OriginalPostID-105295
OriginalPostID-105295
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Your example worked fine for me after fixing the following:
1. Added the missing opening tag in the XML declaration and removing the extra quotation marks in the 1.0 and UTF-8:
<?xml version="1.0" encoding="UTF-8"?><Values><Value><Address>Bäckstreet 0</Address></Value><Value><Address>Backstreet 1</Address></Value></Values>
2. And by adding a comma in the xpathsnippet when testing from the rules interface and adding the prefix ri! to MY_XML_LIKE_ABOVE:
xpathsnippet(ri!MY_XML_LIKE_ABOVE, "/Values/Value/Address/text()")
3. However if you keep having problems make these two changes and also switch the encoding to ISO-8859-1.
<?xml version="1.0" encoding="ISO-8859-1"?><Values><Value><Address>Bäckstreet 0</Address></Value><Value><Address>Backstreet 1</Address></Value></Values>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Your example worked fine for me after fixing the following:
1. Added the missing opening tag in the XML declaration and removing the extra quotation marks in the 1.0 and UTF-8:
<?xml version="1.0" encoding="UTF-8"?><Values><Value><Address>Bäckstreet 0</Address></Value><Value><Address>Backstreet 1</Address></Value></Values>
2. And by adding a comma in the xpathsnippet when testing from the rules interface and adding the prefix ri! to MY_XML_LIKE_ABOVE:
xpathsnippet(ri!MY_XML_LIKE_ABOVE, "/Values/Value/Address/text()")
3. However if you keep having problems make these two changes and also switch the encoding to ISO-8859-1.
<?xml version="1.0" encoding="ISO-8859-1"?><Values><Value><Address>Bäckstreet 0</Address></Value><Value><Address>Backstreet 1</Address></Value></Values>
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data