Skip to main content

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.

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.


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!

 

 


Reply