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
3 replies
Subscribers
7 subscribers
Views
2218 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I an external service which is sending escaped xml as a string e.g. <tag&
joel671
over 8 years ago
I an external service which is sending escaped xml as a string e.g. <tag>myValue</tag> (<tag>myValue</tag>)
We are then converting this using torecord which puts it into a CDT with no issues
This is working fine except in one circumstance when a < is passed in as part of the value. e.g. <tag>my < Value</tag> obviously this is now causing the xml to be misinformed. I cannot get the system sending the information to change the data being sent. All other special character are working fine with this single escaping but the < is causing the torecord to fail. I can't create rules to find each element as there are quite a lot and it would be very complicated is there any way of finding and replacing only those < values within a tag? So we can deal with it within Appian before converting torecord.
OriginalPostID-214409
OriginalPostID-214409
Discussion posts and replies are publicly visible
Parents
0
sagarl511
A Score Level 2
over 8 years ago
Other approach can be using <![CDATA[]] for the value which contains xml specific characters. For example -
torecord("<employee><title><![CDATA[<John>]]></title></employee>",ri!test)
returns -
[id=, title=<John>, RP_status=, RP_priority=, folderId=, createdBy=, createdOn=, updatedBy=, updatedOn=]
If you receive your xml with values in CDATA tag then it might solve your issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sagarl511
A Score Level 2
over 8 years ago
Other approach can be using <![CDATA[]] for the value which contains xml specific characters. For example -
torecord("<employee><title><![CDATA[<John>]]></title></employee>",ri!test)
returns -
[id=, title=<John>, RP_status=, RP_priority=, folderId=, createdBy=, createdOn=, updatedBy=, updatedOn=]
If you receive your xml with values in CDATA tag then it might solve your issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data