Re: [Dev] Removing root element above an array in wso2. Please guide

2018-01-22 Thread Nadeeshaan Gunasinghe
Hi Vikram, Can you try the following Payload factory config? {"Detail":"$1"} Cheers, *Nadeeshaan Gunasinghe* Senior Software Engineer, WSO2 Inc. http://wso2.com +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

Re: [Dev] Removing root element above an array in wso2. Please guide

2018-01-21 Thread Gihan Anuruddha
Have you tried something like this [1]? You need to add another XSLT processing after you get the original output. [1] - https://stackoverflow.com/questions/1571083/how-to-remove-root-element-from-xml-file Regards, Gihan On Mon, Jan 22, 2018 at 8:12 AM, Vinod Kavinda wrote: >

Re: [Dev] Removing root element above an array in wso2. Please guide

2018-01-21 Thread Vinod Kavinda
Hi Vikram, This is happening because your XPath generates multiple elements with below structure, which not your desired output. ** * 26* * box* * 2019-01-17T00:00:00* * * In an XML point of view, you are expecting an xml content like below, which is not a valid XML

Re: [Dev] Removing root element above an array in wso2. Please guide

2018-01-21 Thread vikram nayak
On Sunday, 21 January 2018 8:14 PM, vikram nayak wrote: Hi All,, I have output like below from my xslt : http://schemas.xmlsoap.org/soap/envelope/;> 40 car 2019-01-17T00:00:00 37 table 2019-01-17T00:00:00 35 book 2019-01-17T00:00:00 26 box

[Dev] Removing root element above an array in wso2. Please guide

2018-01-21 Thread vikram nayak
Hi All,, I have output like below from my xslt : http://schemas.xmlsoap.org/soap/envelope/;> 40 car 2019-01-17T00:00:00 37 table 2019-01-17T00:00:00 35 book 2019-01-17T00:00:00 26 box 2019-01-17T00:00:00 which gets converted into below json in postman : {    "Result": {