convert XML to string

Tags:
ABAP
In ABAP I am eventually going to have a web service that will return XML as a string. I can collect the data. I can make the XML. I now need to convert it to a string. ABAP has the ability to write it to a disk file, but I would like to be able to convert the XML to a string in memory and return that. Can this be done? Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

There is a function ‘TEXT_CONVERT_XML_TO_SAP’ that converts XML text to a table; don’t know if that helps.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • SamMesh
    Please read "Rendering a DOM tree into an XML document" from the "XML- Library" at: http://help.sap.com/saphelp_erp2005/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    0 pointsBadges:
    report
  • SamMesh
    Please read "Rendering a DOM tree into an XML document" from the "XML- Library" at: http://help.sap.com/saphelp_erp2005/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    0 pointsBadges:
    report
  • SamMesh
    Hi Bob, I provided incorrect link (but correct title), sorry. Correct link is: http://help.sap.com/saphelp_erp2005/helpdata/en/86/8280e712d511d5991b00508b6b8b11/frameset.htm You could write to XSTRING using if_ixml_stream_factory->create_ostream_xstring(XSTRING). Please see RFC function SMUM_XML_CREATE_X for an example. -- Best regards, Sam Mesh
    0 pointsBadges:
    report
  • SamMesh
    Hi Bob, I provided incorrect link (but correct title), sorry. Correct link is: http://help.sap.com/saphelp_erp2005/helpdata/en/86/8280e712d511d5991b00508b6b8b11/frameset.htm You could write to XSTRING using if_ixml_stream_factory->create_ostream_xstring(XSTRING). Please see RFC function SMUM_XML_CREATE_X for an example. -- Best regards, Sam Mesh
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following