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

XML output - all tags in Single line?

Hi,

Scenario: HTTP----> XI --- > File(XML)/Proxy(abap).

Output XML file has the data in single line(all XML tags).

Now, issue with abap proxy which reads this XML file for sending attachment in email has length constraint(can not read if line length exceeds 255 chars).

Is there any option in XI, to print each pair of tags in each line(using carriage return or line feed?)

Please help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 11:12 PM

    Mallik,

    If you are mapping the HTTP message into a message interface then the structure should format your XML into logical records. These records will then be written to your file with end of line markers

    Regards,

    Mike

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 03:45 AM

    Mallik,

    I do not think that this can be achieved in XML to XML (unless you can create a specific module and add to the module tab)

    But if you create say a CSV or TXT file and use the <b>Content Conversion Parameters</b> option

    Here you can specify the fieldSeparator to be 'nl'

    <b>Input</b>

    <?xml version="1.0" encoding="UTF-8"?>

    <record>

    <field1>f1</field1>

    <field2>f2</field2>

    <field3>f3</field3>

    </record>

    <b>Output</b>

    f1

    f2

    f3

    Here you have retained your data and each field is separated by a new line. Unfortunatley with this method you lose your XML tags

    Regards,

    Mike

    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.