Hi Nisala, How are you currently trying to set the payload?
Try using following to set the payload. Also refer the doc with [1] mc.setPayloadXML(response); [1] https://docs.wso2.com/display/ESB481/JSON+Support On Wed, Jul 29, 2015 at 2:23 PM, Nisala Nanayakkara < [email protected]> wrote: > Hi, > > I am trying to convert json array to an xml using script mediator,in which > I am using > > </script> > <![CDATA[ > > > > *for(var i=0;i > <parametersArray.length;i++){ > Parameters += "<sub1:Parameters>"; Parameters += " > <sub:Id>"+parametersArray[i].Id+"</sub:Id>"; > Parameters += " > <sub:Value>"+parametersArray[i].Value</sub:Value>"; > Parameters += " </sub1:Parameters>"; } * > </script> > ]]> > > However, in the XML we get "<" instead of "<". How can overcome this > issue ?? > > Thanks > -- > > *Best Regards,Nisala Niroshana Nanayakkara,* > *Bsc. Eng Undergraduate | Department of Computer Science & Engineering | > University of Moratuwa | Sri Lanka* > > *Intern Software Engineer | WSO2 Lanka(pvt) Ltd * > *Director | Leo Club of University of Moratuwa.* > *Mobile | +94717600022* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
