Posted: Tue Jul 28, 2015 8:57 pm Post subject: XML flattening using ESQL
Newbie
Joined: 17 Jul 2014 Posts: 9
Hi,
I was trying flatten a XML using ESQL SELECT clause, it appears to be working fine only when the child collection presents in the first parent but when it's missing all elements in the following collections are not selected.
DECLARE sampleMessage REFERENCE TO InputRoot.SOAP.Body.*:TransformationRequest.[1];
SET OutputRoot.XMLNSC.esq:TransformationResponse.collection.cd[] = SELECT cdRef.title FROM sampleMessage.catalog[] AS catalogRef, catalogRef.cd[] AS cdRef;
Please suggest me if there is something other than for loop to chieve the expected flattened xml
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum