How to export progress data as an XML?

Posted by herveyq on 14-Sep-2014 22:36

Searched high and low but doc do not cover everything.

Is it possible to export progress data as an xml?

Thanks

Gil

Posted by Dileep Dasa on 15-Sep-2014 00:12

It is little unclear what "progress data" mean.
I assume you are trying to move data from Progress database table to a XML file. For this, you can use WRITE-XML() method. Please see documentation for more information on WRITE-XML().

Here is a quick example:

DEF TEMP-TABLE stt LIKE customer.

FOR EACH customer:
    CREATE stt.
    BUFFER-COPY customer TO stt.
END.

TEMP-TABLE stt:WRITE-XML("file", "custdata.xml", TRUE, ?, ?, FALSE, FALSE).

Posted by gabriel.lucaciu on 15-Sep-2014 08:41

All about writing XML documents can be found in the following documentation:

documentation.progress.com/.../dvxml.pdf

This should be more helpful to you for any kind of XML writing in OE.

All Replies

Posted by Dileep Dasa on 15-Sep-2014 00:12

It is little unclear what "progress data" mean.
I assume you are trying to move data from Progress database table to a XML file. For this, you can use WRITE-XML() method. Please see documentation for more information on WRITE-XML().

Here is a quick example:

DEF TEMP-TABLE stt LIKE customer.

FOR EACH customer:
    CREATE stt.
    BUFFER-COPY customer TO stt.
END.

TEMP-TABLE stt:WRITE-XML("file", "custdata.xml", TRUE, ?, ?, FALSE, FALSE).

Posted by herveyq on 15-Sep-2014 05:44

Thanks Dileep

Thanks,
Gil

[collapse]
On 15/09/2014 3:13 PM, "Dileep Dasa" <bounce-ddasa@community.progress.com> wrote:
Reply by Dileep Dasa

It is little unclear what "progress data" mean.
I assume you are trying to move data from Progress database table to an XML file. For this, you can use WRITE-XML() method. Please see documentation for more information on WRITE-XML().

Here is a quick example:

DEF TEMP-TABLE stt LIKE customer.

FOR EACH customer:
    CREATE stt.
    BUFFER-COPY customer TO stt.
END.

TEMP-TABLE stt:WRITE-XML("file", "custdata.xml", TRUE, ?, ?, FALSE, FALSE).


Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

Posted by gabriel.lucaciu on 15-Sep-2014 08:41

All about writing XML documents can be found in the following documentation:

documentation.progress.com/.../dvxml.pdf

This should be more helpful to you for any kind of XML writing in OE.

Posted by Thomas Mercer-Hursh on 15-Sep-2014 09:07

I.e.., WRITE-XML, DOM, and SAX .... so three ways depending on where the data is and what you want to do with it.

Posted by herveyq on 15-Sep-2014 17:08

Thanks all

This thread is closed