cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a XMLDataType from String object?

Former Member
0 Kudos

Hi, I am creating a custom action block to process some information. I need to return a XML in the end of the process. So, I have a XML content in a string object. How can I create a XMLDataType with the contents of the string?

I've tried assignDocument() and assignXml() methods but when I try to get the content on MII the XML is blank.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Fernando,

Use assignXML for the string content but make sure that the string is a valid xml.

Check the Logs for the exception it is gives with this method.

assignDocument accepts a Document object. So here you need to create a Document object from your string xml and then use this method.

regards,

Rohit Negi.