Generating new line inside of Generate Data operator

robinrobin Member Posts: 100 Guru
We currently generate text that is parsed into an XML for third party software. This software does not follow the conventions for line breaks and utilised the characters inside of the text field to split the lines.

We need to generate the following:

Get what 
you want

When using the generate data operator and then the extract document operator the above gets turned into:

Get what  you want

(There are two spaces (Hex: 20 20) instead of a line break (Hex: 0D 0A))

How do I correctly generate the line break using this operator?

<?xml version="1.0" encoding="UTF-8"?><process version="8.2.000">
  <operator activated="true" class="generate_data_user_specification" compatibility="8.2.000" expanded="true" height="68" name="Generate Data by User Specification" width="90" x="715" y="595">
    <list key="attribute_values">
      <parameter key="1" value="(&quot;Get what you want&quot;)"/>
    </list>
    <list key="set_additional_roles"/>
  </operator>
</process>


Best Answers

Answers

  • robinrobin Member Posts: 100 Guru
    What I have been doing to date is going into the XML and changing the #10 to a #13 but that is not tenable when running on server. 
  • robinrobin Member Posts: 100 Guru
    Yip @sgenzer that works, very convoluted though, would have thought there was an easier way to accommodate CR and LF.

    Thank you
    sgenzer
  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
    there is a very fine line between convoluted and clever :wink:
    robin
Sign In or Register to comment.