I'm in charge on evolving an application wich uses BizTalk. The problems is that this company have omited to have an architect look into the XML files passed to Biztalk. Now there are xml that have the same structure but for two diffent things. For example the same XML file is used to contain information on Toyota car and Volkswagen car and normaly they should have a diffenrent structure.
Anyhow I have a policy that is comparing values from XML files and even if I coded .NEt vocabularies to test for the ID to be equal, it stills crosscheck XML files that don't have the same ID.
For Each brePolicy As Rule In listePolicys Dim priority As Integer = brePolicy.Priority
For Each brePolicy As Rule In listePolicys
Dim priority As Integer = brePolicy.Priority
policy.Rules.Clear()
policy.Rules.Add(brePolicy) Dim re As RuleEngine = New RuleEngine(policy)
policy.Rules.Add(brePolicy)
Dim re As RuleEngine = New RuleEngine(policy)
re.Execute(objectBuffer)
Next
That is how the xml files are being executed one at the time an all xml files are being thrown to Biztalk inside the objectBuffer