Skip to Content
author's profile photo Former Member
Former Member

Trailing Spaces on XML Nodes using IF_IXML

I have created XML using IF_IXML. According to the schema, several of the elements have trailing spaces in the value for the element. I set the value with a string. For example,

move 'XXXXX ' to lv_string.

lv_rc element->set_value ( lv_string ).

In the rendering of the document to a string, the trailing spaces are omitted and the XML will not validate. Any suggestions would be appreciated.

Buster Hale

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2005 at 06:28 PM

    Found the answer. Use ` instead of ' to set value of string.

    data: lv_string1 type string value `ABC `,

    lv_string2 type string value 'ABC '.

    The length of lv_string1 is 5 and the length of lv_string2 is 3.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.