Skip to Content
author's profile photo Former Member
Former Member

need a help in with CSVFileContent

Hi PI Guru's,

When working with DMS, we have come across CSVFileContent inside the XML structure. Can you please explain me how the <CSVFileContent> will work.

<Transmission>

<TransmissionHeader>

<UserName>DMS.SHIVAJI</UserName>

<Password>SHIVAJI</Password>

</TransmissionHeader>

<TransmissionBody>

<GLogXMLElement>

<CSVFileContent>

RATE_OFFERING

RATE_OFFERING_GID,RATE_OFFERING_XID,RATE_OFFERING_TYPE_GID,CURRENCY_GID,TRANSPORT_MODE_GID,RATE_VERSION_GID,IS_ACTIVE,DOMAIN_NAME

DMS.DIESL_OPT12345,DIESL_OPT12345,LTL,INR,TL,DMS.2011_2012,Y,DMS

</CSVFileContent>

</GLogXMLElement>

<GLogXMLElement>

</TransmissionBody>

</Transmission>

Regards,

Madhu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2012 at 09:13 AM

    more clarity required on question ,

    1) what is the scenario 2) above xml is from payload or it is the source structure? 3)what is the target structure???

    general guess - you are having source as mentioned in your question and you need to map it with target, in that you are having <CSVFileContent> as a field...

    for that you can use udf to break it as per your requirement

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Okay, I believe you need to map just CSVFileContent, and you want header and data in seprate line..

      do as below

      <CSVFileContent>

      <Header> --- containing all fields

      now use duplicate subtree and use above structure for data...

      it will show you two same structure under <CSVFilecontent>... now map it as per your requirement... and go ahead.

  • Posted on Nov 20, 2012 at 10:14 AM

    Hi Madhu,

    Need target xml structure to answer this query. You need UDF / java mapping to extract each field from CSV file.

    Regards

    Anupam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.