Hi All,
I have a scenario like the input is an XML document
where the data present in it has to be changed using some logics and the output is to be stored as an XML document
Can someone tell me is that possible in Appian.
If so, Could you please let me know how to do it.
TIA :)
Discussion posts and replies are publicly visible
You can use torecord() to read from XML into CDT, process the data in the CDT, and the convert the result back using toxml().
Root cause for your error is namespace(xmlns) in XML must be provided with double quotes in it - torecord( "<PersonName xmlns=""www.bpmbasics.com/Person""><First>Edward</First><Last>Denton</Last></PersonName>", type!PersonName() ) Also make sure your namespaces of cdt and xml are same. I suggest you remove namsespace from your xml and use it.