BizTalk Server General - Mapper

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2005 > Mapper





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mapper
Nikki

2005-06-27, 5:51 pm

Hi,

can anyone tell me how to perform the following transformation?

INPUT:
<root>
<record><id>1</id> <parent_id>1</parent_id></record>
<record><id>2</id><parent_id>1</parent_id></record>
<record><id>3</id><parent_id>1</parent_id></record>
</root>

OUTPUT:
<root>
<parent>
<id>1</id>
<child>
<child1 id="2"</child1>
<child2 id="3"</child2>
</child>
</parent>
</root>

Your responses are greatly appreciated!!
R vS

2005-06-27, 5:51 pm

Hi,

I have posted almost the same question. However I already solved it using
custom XSLT in the mapper. Custom XSLT will work for your problem too.
(Create XSLT, Right click mapping grid in biztalk mapper and enter filepath
to custom xslt).
I find it hard to believe this cannot be done using biztalk mapper
functionality. That is why I posted my question.

Regards,

R vS



"Nikki" <Nikki@discussions.microsoft.com> wrote in message
news:AE80B7E2-16BE-480F-862F-E213F1943BEA@microsoft.com...
> Hi,
>
> can anyone tell me how to perform the following transformation?
>
> INPUT:
> <root>
> <record><id>1</id> <parent_id>1</parent_id></record>
> <record><id>2</id><parent_id>1</parent_id></record>
> <record><id>3</id><parent_id>1</parent_id></record>
> </root>
>
> OUTPUT:
> <root>
> <parent>
> <id>1</id>
> <child>
> <child1 id="2"</child1>
> <child2 id="3"</child2>
> </child>
> </parent>
> </root>
>
> Your responses are greatly appreciated!!



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com