<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Removing namespace from outgoing messages</title>
	<atom:link href="http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/</link>
	<description>.NET, BizTalk and integration focused scribbles</description>
	<pubDate>Tue, 06 Jan 2009 07:32:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Richard</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-260</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 02 Sep 2008 12:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-260</guid>
		<description>@Mick

Apply-templates are applied on "match" (that is if you don't have a "mode" in there). 

Say several templates are matching the node you select when you apply-templates all of them will execute ... In the example in this post all templates will match and execute but on different part of the node set I select in the apply-templates. 

I hope that makes some sense. XSLT is so powerful and a must understand for any BizTalk developer. It's however very "different" ...</description>
		<content:encoded><![CDATA[<p>@Mick</p>
<p>Apply-templates are applied on &#8220;match&#8221; (that is if you don&#8217;t have a &#8220;mode&#8221; in there). </p>
<p>Say several templates are matching the node you select when you apply-templates all of them will execute &#8230; In the example in this post all templates will match and execute but on different part of the node set I select in the apply-templates. </p>
<p>I hope that makes some sense. XSLT is so powerful and a must understand for any BizTalk developer. It&#8217;s however very &#8220;different&#8221; &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mick</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-259</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Tue, 02 Sep 2008 12:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-259</guid>
		<description>Being a .NET &#38; Biztalk developer I'm quite familiar with XML (and XPATH) - but not with XSLT. So I'm on a quest to understand XSLT better :-)

One thing I find somewhat confusing is how &#38; when the different apply-templates are executed (in sequence or "parallel" somehow or...?).

I would be grateful if somebody could explain what is being executed when (and why this is so)? Maybe a short step-by-step walkthrough :-)

Thanks in advance.

/ Mick</description>
		<content:encoded><![CDATA[<p>Being a .NET &amp; Biztalk developer I&#8217;m quite familiar with XML (and XPATH) - but not with XSLT. So I&#8217;m on a quest to understand XSLT better <img src='http://www.richardhallgren.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One thing I find somewhat confusing is how &amp; when the different apply-templates are executed (in sequence or &#8220;parallel&#8221; somehow or&#8230;?).</p>
<p>I would be grateful if somebody could explain what is being executed when (and why this is so)? Maybe a short step-by-step walkthrough <img src='http://www.richardhallgren.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks in advance.</p>
<p>/ Mick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-211</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 26 Jun 2008 07:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-211</guid>
		<description>Hi again Jeff,

I misunderstood a couple of thing. In your first comment I didn't get that you actually meant defining a schema without a XML namespace. Then I said that a schema without a XML namespace is useless to BizTalk which of course is wrong. I should have phrased that differently.

Anyway. Great comment. Thanks. I've posted an "update" to this post here: http://www.richardhallgren.com/removing-xml-namespaces-revisit/</description>
		<content:encoded><![CDATA[<p>Hi again Jeff,</p>
<p>I misunderstood a couple of thing. In your first comment I didn&#8217;t get that you actually meant defining a schema without a XML namespace. Then I said that a schema without a XML namespace is useless to BizTalk which of course is wrong. I should have phrased that differently.</p>
<p>Anyway. Great comment. Thanks. I&#8217;ve posted an &#8220;update&#8221; to this post here: <a href="http://www.richardhallgren.com/removing-xml-namespaces-revisit/" rel="nofollow">http://www.richardhallgren.com/removing-xml-namespaces-revisit/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#160; Removing XML namespaces - revisit&#160;by&#160;.RICHARD</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-210</link>
		<dc:creator>&#160; Removing XML namespaces - revisit&#160;by&#160;.RICHARD</dc:creator>
		<pubDate>Thu, 26 Jun 2008 07:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-210</guid>
		<description>[...] have a old post on removing XML namespace from outgoing messages using XSLT in a map on the send port. Removing XML namespace is usually a [...]</description>
		<content:encoded><![CDATA[<p>[...] have a old post on removing XML namespace from outgoing messages using XSLT in a map on the send port. Removing XML namespace is usually a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Lynch</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-206</link>
		<dc:creator>Jeff Lynch</dc:creator>
		<pubDate>Wed, 18 Jun 2008 01:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-206</guid>
		<description>Sorry about that. Your software seems to have stripped out my xml from the previous comment.</description>
		<content:encoded><![CDATA[<p>Sorry about that. Your software seems to have stripped out my xml from the previous comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Lynch</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-205</link>
		<dc:creator>Jeff Lynch</dc:creator>
		<pubDate>Wed, 18 Jun 2008 01:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-205</guid>
		<description>Richard,

That's odd because I've been using BizTalk Server for the past ten years (yes, 10 years) and several of our trading partners still running BizTalk Server 2002 and 2004 require the use of XML 1.0 documents that do NOT use namespaces, namespace prefixes or even the xml declaration.

For example, this is a perfectly acceptable XML 1.0 document:


  1234567


And BizTalk Server 2006 can certainly be made to parse and serialize xml documents like this. BizTalk does NOT require the use of a namespace although by default the XML parser uses the namespace and root node name to identify an inbound document. If the namespace is missing, the root node name must be unique in the deployed schema assembly.

I'd be happy to send you a copy of a current BizTalk Server 2006 R2 solution that both parses and serializes xml documents like this all the time. In fact, I've processed thousands and thousands of such documents in just the past twelve months alone.</description>
		<content:encoded><![CDATA[<p>Richard,</p>
<p>That&#8217;s odd because I&#8217;ve been using BizTalk Server for the past ten years (yes, 10 years) and several of our trading partners still running BizTalk Server 2002 and 2004 require the use of XML 1.0 documents that do NOT use namespaces, namespace prefixes or even the xml declaration.</p>
<p>For example, this is a perfectly acceptable XML 1.0 document:</p>
<p>  1234567</p>
<p>And BizTalk Server 2006 can certainly be made to parse and serialize xml documents like this. BizTalk does NOT require the use of a namespace although by default the XML parser uses the namespace and root node name to identify an inbound document. If the namespace is missing, the root node name must be unique in the deployed schema assembly.</p>
<p>I&#8217;d be happy to send you a copy of a current BizTalk Server 2006 R2 solution that both parses and serializes xml documents like this all the time. In fact, I&#8217;ve processed thousands and thousands of such documents in just the past twelve months alone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-204</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 17 Jun 2008 06:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-204</guid>
		<description>Hi Jeff,

Setting the elementFormDefault attribute tells XSD that all globally declared elements (root node) has to live inside of a namespace (prefix or default). Locally declared element however don't have to exists within a namespace. There isn't built-in functionality to totally strip a message of it's namespace as this generally speaking is wrong - if you have a language on the receiving side that understands XML and have a correct implementation of XML, XML namespaces isn't a problem. Totally removing XML namespace would also make the XML message useless to BizTalk as BizTalk (as you know) uses the namespace in combination with the name of the root node to actually understand what kind of message it is.

Hope that explains it and sorry for pointing out a couple of obvious things.

I usually recommend this article when it comes to XML namespaces: http://www.oracle.com/technology/pub/articles/srivastava_namespaces.html
Also make sure yo don't miss Johans solution using streaming, you'll find it here: http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx</description>
		<content:encoded><![CDATA[<p>Hi Jeff,</p>
<p>Setting the elementFormDefault attribute tells XSD that all globally declared elements (root node) has to live inside of a namespace (prefix or default). Locally declared element however don&#8217;t have to exists within a namespace. There isn&#8217;t built-in functionality to totally strip a message of it&#8217;s namespace as this generally speaking is wrong - if you have a language on the receiving side that understands XML and have a correct implementation of XML, XML namespaces isn&#8217;t a problem. Totally removing XML namespace would also make the XML message useless to BizTalk as BizTalk (as you know) uses the namespace in combination with the name of the root node to actually understand what kind of message it is.</p>
<p>Hope that explains it and sorry for pointing out a couple of obvious things.</p>
<p>I usually recommend this article when it comes to XML namespaces: <a href="http://www.oracle.com/technology/pub/articles/srivastava_namespaces.html" rel="nofollow">http://www.oracle.com/technology/pub/articles/srivastava_namespaces.html</a><br />
Also make sure yo don&#8217;t miss Johans solution using streaming, you&#8217;ll find it here: <a href="http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx" rel="nofollow">http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Lynch</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-202</link>
		<dc:creator>Jeff Lynch</dc:creator>
		<pubDate>Mon, 16 Jun 2008 21:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-202</guid>
		<description>I'm a little confused. Why wouldn't you just create an outbound schema with the elementFormDefault set to "unqualified" or aaatributeFormDefault set to "unqualified" and map to this schema?</description>
		<content:encoded><![CDATA[<p>I&#8217;m a little confused. Why wouldn&#8217;t you just create an outbound schema with the elementFormDefault set to &#8220;unqualified&#8221; or aaatributeFormDefault set to &#8220;unqualified&#8221; and map to this schema?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Hedberg</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-155</link>
		<dc:creator>Johan Hedberg</dc:creator>
		<pubDate>Tue, 08 Jan 2008 00:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-155</guid>
		<description>My main objection to the xslt map solution would be that you would most likely want to do this on your outgoing xml, which as you mentions might interfere with the map on the sendport. Thus I'd prefer a pipeline solution. Building such I'd like one that I can use for any file I wish to send through (ie without loading data into memory if I can help it), because you never know when that agreed upon 1MB turns out to have become 15MB. I'd go for a custom pipeline component using the XmlTransformStream. I've explained this implementation in a blogpost at http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx. Although it's more limited in it's uses then the XslTransformComponent, I feel it's more suited for this scenario.</description>
		<content:encoded><![CDATA[<p>My main objection to the xslt map solution would be that you would most likely want to do this on your outgoing xml, which as you mentions might interfere with the map on the sendport. Thus I&#8217;d prefer a pipeline solution. Building such I&#8217;d like one that I can use for any file I wish to send through (ie without loading data into memory if I can help it), because you never know when that agreed upon 1MB turns out to have become 15MB. I&#8217;d go for a custom pipeline component using the XmlTransformStream. I&#8217;ve explained this implementation in a blogpost at <a href="http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx" rel="nofollow">http://blogical.se/blogs/johan/archive/2008/01/07/removing-xml-namespace-in-a-pipeline-component.aspx</a>. Although it&#8217;s more limited in it&#8217;s uses then the XslTransformComponent, I feel it&#8217;s more suited for this scenario.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Removing Xml Namespace in a pipeline component - Be Logical - writings by Johan Hedberg</title>
		<link>http://www.richardhallgren.com/removing-namespace-from-outgoing-messages/#comment-154</link>
		<dc:creator>Removing Xml Namespace in a pipeline component - Be Logical - writings by Johan Hedberg</dc:creator>
		<pubDate>Tue, 08 Jan 2008 00:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardhallgren.com/?p=260#comment-154</guid>
		<description>[...] Hallgren recently blogged about how to remove Xml namespaces from Xml documents, as has Kirk Allen Evans earlier here and here.&#160;While the latter writes from a general .NET [...]</description>
		<content:encoded><![CDATA[<p>[...] Hallgren recently blogged about how to remove Xml namespaces from Xml documents, as has Kirk Allen Evans earlier here and here.&nbsp;While the latter writes from a general .NET [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
