Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Add xml node element

  1. #1
    Join Date
    Nov 2014
    Posts
    2

    Default Add xml node element

    I have a XML (questions.xml) I try to do it with spoon

    <questions>
    <question>
    <q1>name</name>
    </question>
    </questions>

    and I need add other tag : <q2>

    <questions>
    <question>
    <q1>name</q1>
    <q2>age</q2>
    </question>
    </questions>

    *****************************************
    I can do it with spoon ?? I tried do it with javascript , join XML, add XML......but i dont know to do it , Exist another solution for do it

    THX for All

  2. #2

    Default

    Hi vandyc ,

    PFA transformation, may be that will not the optimum solution but this way you will be able to get your desired xml output. You can also use one ADD XML and one XML OUTPUT step to achieve the same.
    Attached Files Attached Files

  3. #3
    Join Date
    Nov 2014
    Posts
    2

    Default

    mt25 thank you for all i just i looking for , good user and good comunity

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.