I am creating a XML write file (cmn_users_write) in my process and am using a variable to store a part the XML content that should come in the write XML file.
But when I place the variable inside gel parse to complete my write xml, it replaces the < and > sign by their HTML codes i.e- < and > and making the XOG fail.
<gel:parse var="v_xml_root">
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_user.xsd">
<Header action="write" externalSource="NIKU" objectType="user" version="14.2.0.237"/>
<Users>
<User externalId="${v_xog_externalId}" userLanguage="${v_xog_userLanguage}" userName="${v_xog_userName}" userStatus="${v_xog_userStatus}" userType="${v_xog_userType}" >
<PersonalInformation emailAddress="${v_xog_emailAddress}" firstName="${v_xog_firstName}" lastName="${v_xog_lastName}"/>
<Resource resourceId="${v_xog_resourceId}"/>
<InstanceRights>
${r3}
</InstanceRights>
<InstanceOBSRights/>
</User>
</Users>
</NikuDataBus>
</gel:parse>
where variable r3 value is=
<Right id="ProjectEditManagement">
<InstanceObject id="tes_req" name="test_req" type= "SRM_PROJECTS"/>
</Right>
But if I print the write xml that is generated,I see below-
<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_user.xsd">
<Header action="write" externalSource="NIKU" objectType="user" version="14.2.0.237"/>
<Users>
<User externalId="" userLanguage="English" userName="testpm2@test.com" userStatus="ACTIVE" userType="INTERNAL">
<PersonalInformation emailAddress="testpm2@test.com" firstName="testpm2" lastName="testpm2"/>
<Resource resourceId="testpm2"/>
<InstanceRights> <Right id="ProjectEditManagement"><InstanceObject id="tes_req" name="test_req" type= "SRM_PROJECTS"/></Right></InstanceRights>
<InstanceOBSRights/>
</User>
</Users>
</NikuDataBus>
If I replace ${r3} by its value in the write file, the xog works.
Any idea how to let gel consider < and > symbols as they are in parse?
Thanks!
Ashmi