The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

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
  • sgenzersgenzer Administrator, Moderator, Employee-RapidMiner, 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:
Sign In or Register to comment.