BizTalk Server General - Comparing multiple XML nodes within Rules Engine

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2005 > Comparing multiple XML nodes within Rules Engine





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 Comparing multiple XML nodes within Rules Engine
Nikki

2005-11-30, 5:52 pm

Hi,

How can I accomplish the following using the rules engine and an
orchestration:

(1) using the incoming XML message, pass a subset of nodes with duplicate
attribute/arbitrary values to the rules engine; i.e. nodes with matching name
values:
<node1 name = lisa DOB = 12/15/1982 flag ="0"/>
<node2 name = lisa DOB = 1/1/2005 flag = "0"/>
<node3 name = lisa DOB = 7/15/1968 flag = "0"/>

(2) within the rules engine, compare the "duplicate" nodes and update
attribute(s) based on criteria(s): i.e. using the nodes above, set the flag
to 1 if the node has the oldest DOB:
<node1 name = lisa DOB = 12/15/1982 flag ="0"/>
<node2 name = lisa DOB = 1/1/2005 flag = "0"/>
<node3 name = lisa DOB = 7/15/1968 flag = "1"/>

Thanks in advance!!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com