Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Saving an XML file on a server with cl_xml_document

Former Member
0 Kudos

Hello,
I'm trying to save an xml file using cl_xml_document on an external server.
But it doesn't work.
It works locally.

with a path like '/testfile.xml'.

Any help is appreciated regards,

Regards,
Driss


1 ACCEPTED SOLUTION

Former Member
0 Kudos

I found another simplier way.

OPEN DATASET lv_pathname IN TEXT MODE ENCODING UTF-8 FOR INPUT.

       
READ DATASET lv_pathname INTO lv_payload.
*        TRANSFER ***** 
       
CLOSE DATASET lv_pathname.

and use the lv_payload it as a cl_xml_document object after.

1 REPLY 1

Former Member
0 Kudos

I found another simplier way.

OPEN DATASET lv_pathname IN TEXT MODE ENCODING UTF-8 FOR INPUT.

       
READ DATASET lv_pathname INTO lv_payload.
*        TRANSFER ***** 
       
CLOSE DATASET lv_pathname.

and use the lv_payload it as a cl_xml_document object after.