Skip to main content
Question

Inserting newlines in XML Templater?


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.

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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
takashi wrote:

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!

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings