Skip to main content
Question

Inserting newlines in XML Templater?

  • June 7, 2017
  • 2 replies
  • 113 views

Forum|alt.badge.img+1

Hi!

My XML Templater workflow is as follows: One feature triggers the root template, that then processes three subtemplates. However, I can't get the subtemplates to begin on a new line.

Current state:

</node><node id="80000000010000007000" attributes="">
<tags>...</tags>
</node><node id="80000000010000007001" attributes="">
    <tags>...</tags>
</node><node id="80000000010000007002... 

Desired state:

</node>
<node id="80000000010000007000" attributes="">
<tags>...</tags>
</node>
<node id="80000000010000007001" attributes="">
    <tags>...</tags>
</node>
<node id="80000000010000007002... 

But I can't seem to work out how to get a newline in there. I've tried both some CDATA-suggestion from https://stackoverflow.com/questions/10917555/adding-a-new-line-break-tag-in-xml as well as 
 - neither of which are permitted.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • June 7, 2017

Hi @fhilding, I don't think there is a good way to do that within the XMLTemplater. Consider using the XMLFormatter if you need to adjust the format of the resulting XML document.


Forum|alt.badge.img+1
  • Author
  • June 7, 2017

Hi @fhilding, I don't think there is a good way to do that within the XMLTemplater. Consider using the XMLFormatter if you need to adjust the format of the resulting XML document.

Of course! Almost silly of me to forget that there's also a formatter :) Thanks!