Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: how to read XML folder using STAX Xml parser

  1. #1
    Join Date
    Jul 2012
    Posts
    5

    Default how to read XML folder using STAX Xml parser

    Hi,

    Please let know how can I read a xml folder using the XML Input stream(Stax).


    Thanks in advance
    Mohan

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

    Default

    XML Input Stream only takes a single filename, but you may provide it in a variable.
    The solution to your problem is to construct a file processing loop.
    Create a job with two transformations.
    The first transformation collects all the relevant filenames (Get File Names) and copies the filenames to the result stream (Copy Rows to Result).
    Prepare the second transformation to receive the filename as a parameter (Ctrl-T / Parameters), so you can use the variable as filename.
    Configure the second transformation job entry to execute for each input row and to copy the filename to the parameter.
    Attached Files Attached Files
    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.