Test Data Manager

 View Only
  • 1.  Javelin - XML Doc to CSV

    Posted Aug 14, 2020 03:48 PM
    while using  file activity, XML Doc to CSV. Javlelin documentation says, to input xml file path to conevrt it into CSV.

    but when i give file path as input. Javelin throws an error - String cannot be conevrted to XMLDocument. 
    error:




    Javelin document: 


    ------------------------------
    Thanks
    IHG
    Rajesh
    ------------------------------


  • 2.  RE: Javelin - XML Doc to CSV
    Best Answer

    Broadcom Employee
    Posted Aug 17, 2020 07:08 AM
      |   view attached
    Hi,

        The action does not need the path to the file, you actually need to first load the file into a variable of type xmldocument and then reference the variable.  I have attached a sample workflow.  If you copy the contents of the zip file into the c:\temp folder and run the worklflow, the workflow will load the file called books.xml  and a csv output file called books will be created . Hopefully you will find the example useful.


    ------------------------------
    Regards

    Keith Puzey
    Client Services Consultant | Enterprise Software Division
    Broadcom
    ------------------------------

    Attachment(s)



  • 3.  RE: Javelin - XML Doc to CSV

    Posted Aug 18, 2020 10:35 PM
    Works perfectly. Thanks.

    ------------------------------
    Thanks
    IHG
    Rajesh
    ------------------------------