Sorting XML Nodes with the BizTalk Mapper

I didn't Know it was this easy.... This is a little story about sorting nodes in a XML Document. Let's say we have a schema that looks like the one below


To see the actual XML file I used click here. Let's say you want to sort the 'AdresGegevens' node on 'Adres' and then on 'Postcode'. How do we do that with BizTalk ? As usual, once you know the trick with BizTalk it's easy.....

Ok we start the BizTalk Mapper and we create a map that looks like this....

I use the mass copy functoid because there is no logic at all and all the nodes are the same. I only want to sort the 'ZakelijkAdres' node.
Then we start to edit the Scripting Functoid parameters, for this sample the screen looks like the one below

And we are done with it. If you select 'Validate Map' and click on the produced output you will see the generated XSL for the complete map and you can see that this little piece of XSL is included in the complete map.

 

If you want to see the sorted output click here
Published Wed, Jun 22 2005 4:31 PM by Patrick Wellink
Filed under:

Comments

# re: Sorting XML Nodes with the BizTalk Mapper

Wednesday, June 22, 2005 5:52 PM by Patrick Wellink
Volgende keer ff naar boven lopen Patrick. Sortering binnen XSLT doen we al in een aantal projecten! :-)

# re: Sorting XML Nodes with the BizTalk Mapper

Thursday, June 23, 2005 8:05 AM by Patrick Wellink
`Ja ja maar niet in de biztalk mappert wijsneus

# re: Sorting XML Nodes with the BizTalk Mapper

Wednesday, August 02, 2006 11:50 AM by Ronderz
This solution is also worth noting..

http://biztek.blogspot.com/2006/07/group-and-sum-of-account-biztalk-xlinq.html

# Use XSLT and Xpath to sort in the BizTalk Mapper

Thursday, November 23, 2006 2:20 PM by Adam's Dev Doldrums

Typically when you use BTS to integrate with PeopleSoft Component Interfaces you find your self performing