Posted: Tue Oct 18, 2011 2:05 am Post subject: CDATA converts XML attributes to elements
Newbie
Joined: 18 Oct 2011 Posts: 2
Hi, we are currently experiencing an issue, when we use (XML.CDataSection) it converts XML attributes to XML elements. Here is the code that we use:
DECLARE refData REFERENCE TO OutputRoot.XMLNS.Envelope.Body.csrSession.pwsRequest.items.statement.data.Reports;
DECLARE refCCPS CHARACTER;
SET Environment.Variables.blobCCPS = ASBITSTREAM(refData OPTIONS FolderBitStream);
SET refCCPS = CAST(Environment.Variables.blobCCPS AS CHAR CCSID 1208 );
SET OutputRoot.XMLNS.Envelope.Body.csrSession.pwsRequest.items.statement.data = NULL;
SET OutputRoot.XMLNS.Envelope.Body.csrSession.pwsRequest.items.statement.data.(XML.CDataSection) = refCCPS;
Here is the data that we want to insert to Output tree as a CDATA:
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