CDATA from Dataset

Posted by Jens Dahlin on 20-Feb-2015 04:08

I need to export data to an xml with several CDATA-sections.

Seems I need to use the SAX-writer instead of just WRITE-XML on the dataset. Am I correct?

Posted by Robin Brown on 20-Feb-2015 10:14

Hi Jens,
 
You are correct.  You need to use the SAX-WRITER and the WRITE-CDATA() method.  WRITE-XML on temp-tables and datasets has no facility for this.
 
Regards,
Robin
 
[collapse]
From: Jens Dahlin [mailto:bounce-Jensairtoursse@community.progress.com]
Sent: Friday, February 20, 2015 5:09 AM
To: TU.OE.Development@community.progress.com
Subject: [Technical Users - OE Development] CDATA from Dataset
 
Thread created by Jens Dahlin

I need to export data to an xml with several CDATA-sections.

Seems I need to use the SAX-writer instead of just WRITE-XML on the dataset. Am I correct?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

All Replies

Posted by Robin Brown on 20-Feb-2015 10:14

Hi Jens,
 
You are correct.  You need to use the SAX-WRITER and the WRITE-CDATA() method.  WRITE-XML on temp-tables and datasets has no facility for this.
 
Regards,
Robin
 
[collapse]
From: Jens Dahlin [mailto:bounce-Jensairtoursse@community.progress.com]
Sent: Friday, February 20, 2015 5:09 AM
To: TU.OE.Development@community.progress.com
Subject: [Technical Users - OE Development] CDATA from Dataset
 
Thread created by Jens Dahlin

I need to export data to an xml with several CDATA-sections.

Seems I need to use the SAX-writer instead of just WRITE-XML on the dataset. Am I correct?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

Posted by Frank Meulblok on 23-Feb-2015 03:55

Might be worth submitting an Idea (community.progress.com/.../default.aspx) to have the XML-NODE-TYPE attribute support CDATA sections ?

Posted by Jens Dahlin on 23-Feb-2015 04:00
This thread is closed