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

Urgent

Hi,

my requirement is i want to convert whole xml structure in to single string then insert into database. actually i want insert whole source xml message into database in single field. plz help me out .

Thanks,

Satya...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 07:54 AM

    HI,

    What is your scenario. Its proxy to JDBC?

    You can create only one element in data type and fill that element with whatever string you need to pass to Database.

    Thax,

    Chirag Gohil

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 08:06 AM

    Use java mapping. Pass the whole payload there to a single field instead of parsing it.

    Regards,

    Prateek

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:12 AM

    kindly ignore

    Message was edited by:

    vishal kharat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:32 AM

    Satya,

    1. Create a target data type with one node as string, now in mapping just use the CONCAT function to map all the source fields to your target filed.

    2. Now you can insert or update the database.

    Probabily you can use XI to JDBC or XI to R/3 (Inbound Proxy) but it depends upon your scenario.

    I can help you more if you could tel about your scenario in detail.

    Regards,

    Sarvesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Have a look at this blog

      /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

      @Sarvesh,

      Never mind. Every one makes mistakes. Beleive me, I do more often than you 😊

      Regards,

      Jai Shankar

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 07:40 AM

    Hi,

    read whole row ......with

    endseparator =nl

    fieldseparator=nl.........and then let me now ......ur result ......

    Regards,

    Azeez khan.

    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.