<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Updating multiple nodes with different parents and hierarchical levels using the BizTalk BRE</title>
	<atom:link href="http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/feed/" rel="self" type="application/rss+xml" />
	<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/</link>
	<description>Randal van Splunteren&#039;s experiences with BizTalk Server and other MS technologies.</description>
	<lastBuildDate>Wed, 01 Sep 2010 00:35:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Dipen</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/#comment-302</link>
		<dc:creator>Dipen</dc:creator>
		<pubDate>Thu, 07 Jan 2010 21:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=12#comment-302</guid>
		<description>Hi Randal,

The below solution that you suggested in the email works peractly fine for me without any errors.

Solution By Randal:
I looked at your issue. To make this work you will have to change the XpathSelector property in the XSD for both ExpirationDate and IssueDate (see below). After changing the XpathSelector drag the changed facts to your rule. You don’t need the exists in the rule anymore you just only need to use the ‘is greater or equal’ predicate.. The existence check is included in the xpath now.
 

ExpirationDate: 
XPathSelector:
/*[local-name()=&#039;Provider&#039; and namespace-uri()=&#039;urn:Access.XYZ.Provider&#039;]/*[local-name()=&#039;ProviderLicense&#039; and namespace-uri()=&#039;urn:Access.XYZ.Provider&#039;][count(*[local-name()=&#039;IssueDate&#039;]) = 1 and count(*[local-name()=&#039;ExpirationDate&#039;]) = 1]
 
IssueDate:
 
XPathSelector:
/*[local-name()=&#039;Provider&#039; and namespace-uri()=&#039;urn:Access.XYZ.Provider&#039;]/*[local-name()=&#039;ProviderLicense&#039; and namespace-uri()=&#039;urn:Access.XYZ.Provider&#039;][count(*[local-name()=&#039;IssueDate&#039;]) = 1 and count(*[local-name()=&#039;ExpirationDate&#039;]) = 1]

Thanks once again.</description>
		<content:encoded><![CDATA[<p>Hi Randal,</p>
<p>The below solution that you suggested in the email works peractly fine for me without any errors.</p>
<p>Solution By Randal:<br />
I looked at your issue. To make this work you will have to change the XpathSelector property in the XSD for both ExpirationDate and IssueDate (see below). After changing the XpathSelector drag the changed facts to your rule. You don’t need the exists in the rule anymore you just only need to use the ‘is greater or equal’ predicate.. The existence check is included in the xpath now.</p>
<p>ExpirationDate:<br />
XPathSelector:<br />
/*[local-name()='Provider' and namespace-uri()='urn:Access.XYZ.Provider']/*[local-name()='ProviderLicense' and namespace-uri()='urn:Access.XYZ.Provider'][count(*[local-name()='IssueDate']) = 1 and count(*[local-name()='ExpirationDate']) = 1]</p>
<p>IssueDate:</p>
<p>XPathSelector:<br />
/*[local-name()='Provider' and namespace-uri()='urn:Access.XYZ.Provider']/*[local-name()='ProviderLicense' and namespace-uri()='urn:Access.XYZ.Provider'][count(*[local-name()='IssueDate']) = 1 and count(*[local-name()='ExpirationDate']) = 1]</p>
<p>Thanks once again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randal van Splunteren</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/#comment-293</link>
		<dc:creator>Randal van Splunteren</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=12#comment-293</guid>
		<description>Hi,

Thanks for your comment to my post. Sorry I did not respond earlier.

Can you please mail me the exported policy (and optionally vocabulary) and one or more sample instance(s) so I can have a look.
You can find my e-mail address on the about page of my blog.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for your comment to my post. Sorry I did not respond earlier.</p>
<p>Can you please mail me the exported policy (and optionally vocabulary) and one or more sample instance(s) so I can have a look.<br />
You can find my e-mail address on the about page of my blog.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dipen</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/#comment-290</link>
		<dc:creator>Dipen</dc:creator>
		<pubDate>Thu, 31 Dec 2009 17:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=12#comment-290</guid>
		<description>I have somewhat similar situation in my xml, having the business rules on multiple nodes with optional elements and do the updates on another xml.

Business rule is ExpirationDate can not be less than IssueDate (If both elements are present). At the same time both of these elements are optional, if I pass the following xml to BRE.

		
	abcder12
	1980-01-01T00:00:00
        1985-01-01T00:00:00

	
	xyz456	


I&#039;m getting the following error
Field &quot;*[local-name()=&#039;IssueDate&#039; and namespace-uri()=&#039;urn:GeoAccess.PDE.Provider&#039;]&quot; does not exist in XML document &quot;Provider&quot;, selector &quot;/Provider/ProviderLicense&quot;.

However the rules works fine, if there is only one  node or all elements are present inside the  node.

AND 
 IssueDate Exists in ProviderLicense
 ExpirationDate Exists in ProviderLicense
 IssueDate is greater than or equal to ExpirationDate


Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I have somewhat similar situation in my xml, having the business rules on multiple nodes with optional elements and do the updates on another xml.</p>
<p>Business rule is ExpirationDate can not be less than IssueDate (If both elements are present). At the same time both of these elements are optional, if I pass the following xml to BRE.</p>
<p>	abcder12<br />
	1980-01-01T00:00:00<br />
        1985-01-01T00:00:00</p>
<p>	xyz456	</p>
<p>I&#8217;m getting the following error<br />
Field &#8220;*[local-name()='IssueDate' and namespace-uri()='urn:GeoAccess.PDE.Provider']&#8221; does not exist in XML document &#8220;Provider&#8221;, selector &#8220;/Provider/ProviderLicense&#8221;.</p>
<p>However the rules works fine, if there is only one  node or all elements are present inside the  node.</p>
<p>AND<br />
 IssueDate Exists in ProviderLicense<br />
 ExpirationDate Exists in ProviderLicense<br />
 IssueDate is greater than or equal to ExpirationDate</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randal van Splunteren</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/#comment-279</link>
		<dc:creator>Randal van Splunteren</dc:creator>
		<pubDate>Wed, 23 Dec 2009 08:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=12#comment-279</guid>
		<description>Thank you</description>
		<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeeshan</title>
		<link>http://biztalkmessages.vansplunteren.net/2008/06/11/updating-multiple-nodes-with-different-parents-and-hierarchical-levels-using-the-biztalk-bre/#comment-277</link>
		<dc:creator>Zeeshan</dc:creator>
		<pubDate>Wed, 23 Dec 2009 04:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://biztalkmessages.wordpress.com/?p=12#comment-277</guid>
		<description>Nice work there.. This is quite an elegant way .. Well done..</description>
		<content:encoded><![CDATA[<p>Nice work there.. This is quite an elegant way .. Well done..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
