Biztalk Rule Composer - Handle Empty Xml nodes RRS feed

  • Question

  • I am not sure how to handle empty nodes in an input xml document and when a rule is looking for that node. 

    For instance, we have an xml document as shown below and we want to write a rule to check whether a "book" exists in "Item1" or "Item2", but if the incoming xml does not have "Item2" , rules engine is not evaluating the rule that have both "Item1" and "Item2" in the rule logic. So we ended up writing 2 separate rules , one rule checking for "Item1" and other rule checking for "Item2". I want to write one rule with a "OR" conditon of "Item1" and "Item2". Please advise if there is a way to handle in rules if the the incoming xml does not have the nodes the rule is looking.







                        <book> </book>




    Dilip Bandi

    Friday, February 6, 2015 4:47 PM


  • Hi Dilip,

    Refer the post for the workaround to handle this.


    Please mark as answer or vote as helpful if my reply does

    • Proposed as answer by DPS Bali Monday, February 9, 2015 10:12 AM
    • Marked as answer by Angie Xu Wednesday, February 11, 2015 1:38 AM
    Sunday, February 8, 2015 2:51 PM