XML Format

Certified Lead Developer
Hi,

How to convert a CDT to an XML format excluding XML Header information.
To achieve this requirement I used toxml() function but it is including XML Header as shown below.

<n1:EmployeeDetails xmlns:n1="EmployeeDetails">
<firstName>xyz</firstName>
<lastName>abc</lastName>
</n1:EmployeeDetails>

But I want result as shown below.

<firstName>xyz</firstName>
<lastName>abc</lastName>

OriginalPostID-259969

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @Sridevi Try creating an expression rule which accepts an input of type Text which holds value and another input which holds property, and return the response as XML Format, where the rule input which holds property, use it to form a Tag, and the input which holds the value, treat it as the value of this tag, and return , and in target place append the response into a local variable,

    hope this can give you an alternate idea to achieve this
Reply
  • 0
    Certified Lead Developer
    @Sridevi Try creating an expression rule which accepts an input of type Text which holds value and another input which holds property, and return the response as XML Format, where the rule input which holds property, use it to form a Tag, and the input which holds the value, treat it as the value of this tag, and return , and in target place append the response into a local variable,

    hope this can give you an alternate idea to achieve this
Children
No Data