BizTalk Map - Suppress Element if Attribute is not required.

Posted at: 5/18/2007 at 6:44 PM by saravana

Scenario: The following question is taken from BizTalk.General NewsGroup (altered slightly for readability purpose)

"I'm mapping an element in the source schema to an attribute in the destination schema.  The element  does not exist in the source schema, but when I run the map it creates the element in the destination schema that houses the attribute I am mapping to.  The attribute does not show up in the result of the map, just the empty element. I need to have it not create the empty element if it is not going to put a value in the attribute."

Here is the solution:

Thanks goes to my collegue Matthew Johnstone and same technique was explained by Kiran Pabba in the newsgroup. I know for sure Matthew worked out this sample himself :-)

Tags:  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(12) | Comments RSS

Comments

Wednesday, November 28, 2007 10:16 PM
Anonymous
Anonymous
Excellent!  Just what I was looking for.
Thursday, August 21, 2008 12:42 PM
saurabh Jain India
saurabh Jain
Wow, i have been looking for this for last 2 days...it worked very well for me...However if one has many elements, then those many* 2 functoids would have to be added to the map and will make the map very complex...is there an alternate way of doing this....that would be a great help......thanx
Friday, October 24, 2008 8:44 AM
Sean South Africa
Sean
You could try this:
biztalkia.blogspot.com/.../...iztalk-by-using.html

Uses XLST to remove empty nodes.
Friday, July 23, 2010 7:56 AM
Retro Jordans
So happy to enjoy such a insightful article that does not depend on base posturing to get the topic fulfilled. Keep it up!
Monday, August 02, 2010 1:33 AM
lenen
U wilt geld lenen zonder BKR toetsing? De opties hiervoor worden groter, kijk verder en ontdek hoe u wél geld kunt lenen, snel & eenvoudig.
Thursday, August 05, 2010 1:44 AM
Seattle Limo
Hello everybody. Just thought I’d drop a line. Lately I have become addicted to blogs I think. I will start reading a little and before I know it half the day is gone. Came upon this blog and I am just amazed how infinite the topics can be. Anyway, thanks from an information junkie.
Friday, August 06, 2010 4:25 AM
Timberland boots
I had just finished reading your articles,and this is very good! timberland boots uk Being a comprehensive trade solution provider offering sale services with free shipping to international buyers who are interested in shopping online.The products here are timberland boots outlet, timberland roll top boots and men timberland boots. As an online business platform mainly retailing, waterproof boots we provide our buyers with an efficient and manageable procurement process covering every phase of the international supply chain and streamlining trade channels. Also welcome wholesaling, feedback now!www.timberlandshoesonline.com
Saturday, August 07, 2010 3:52 PM
Cam Girls
Awesome site, just bookmarked it on delicious. Hopefully, you can see a few more visitors.
Saturday, August 07, 2010 4:19 PM
Sex Chat
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here It's always nice when you can not only be informed, but also entertained I'm sure you had fun writing this article.
Tuesday, August 10, 2010 12:27 AM
hypotheek
Bereken zelf uw hypotheek. Hypotheek berekenen? Maak snel een indicatieve berekening van het maximale leenbedrag van uw hypotheek.
Wednesday, August 18, 2010 7:16 AM
Nike Dunk High Premium
So happy to enjoy such a insightful article that does not depend on base posturing to get the topic fulfilled. The post is in reality the greatest on this laudable topic. Keep it up!
Friday, August 27, 2010 3:56 AM
outletuggbootscheap
We offer high quality and cheap Ugg Boots Ugg Boots for our customers. ugg boots canada Our online store can provide Ugg Boots for Women, Men and Children. uggs canada You can have a great selection here, buy ugg boots canada from our button UGG boots ugg boots bailey our height and UggSandals classic.http://www.outletuggbootscheap.com/

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading