Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Pentaho escaping characters

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013

    Default Pentaho escaping characters

    Hi everybody, I'm totally new at Pentaho and I'm having some problems with my first project. Basically, I have an xml input and I want to generate an xml output, so I've created a transformation and added a "Get data from XML" component, a "Modified Java Script Value", and a "XML Output"; the input component just reads the XML file, in the Java Script step I created a variable to hold the xml content of the file and also I read some values on it (the function's code is at the bottom) and the XML Output just generates the file. The problem is that the generated xml escapes all the "<" and ">" symbols; I've tried adding a "Replace in String" component and specifying the symbols to replace (&lt; by < and &gt; by >) but nothing happened, does anybody have some tip?
    This is the javascript code:
    var xml;
    if (xml==null) {
     xml = new XML();
     var xml =<docs>
    And this is what I get:

    &lt;marginal-yea&gt;Yonhy Lescano Ancieta&lt;/marginal-yea&gt;

    Any help will be appreciated, regards
    Last edited by solid_rock; 05-24-2013 at 08:15 AM. Reason: Try to change forum room

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.