Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Merge XML files or use a Script

  1. #1

    Default Merge XML files or use a Script

    Hi All,

    I'm trying to automate the "Get Fields" button in some way. If there is an easier way... PLEASE let me know. I have some ideas...

    Scenario:
    I have a plain "CSV input" that needs to populate the fields automatically. It's normally done by pressing the "Get Fields" button.
    I only need to get the field name. No need for data type, size etc..

    Ideas:
    I thought that I'll be able to insert the values by reading the transformation as an xml and merging it with another xml file where I was able to extract the field names... no luck. (Please find attached attempt)
    Another option I was thinking of was to have template files. Basically have a main variable that contains the content of a file(.xml) and then go about adding the content of another file to the bottom of the variable. Once finished, the variable will be saved into a new file.

    THANKS GUYS
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    An ever increasing number of steps support Metadata Injection, so you don't have to manipulate XML files directly.
    So long, and thanks for all the fish.

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.