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

Mapping of Header Value

Hi,

i have following source structure.

<item>
<header>
<name>test</name>
</header>
<pos>
<id>1</id>
</pos>
<pos>
<id>2</id>
</pos>
<item>
<item>...

and need this target structure.

<item>
<id>1<id>
<name>test</name>
<item>
<item>
<id>2<id>
<name>test</name>
<item>

so i need the same value from header for every pos of one item.

how can i handle that?

regards,

robin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:30 PM

    HI,,

    Take constant from down predefined functions options and hard code 2 and map this element to Id element on the receiver side.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:52 PM

    useOneAsMany will serve your purpose

    1st parameter - name

    2nd - id(context to root element)

    3rd - id(context to node pos)

    play around with context..

    for useOneAsMany.. check this out

    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

    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.