WebServices XML Add-Entitlement

You should be able to follow the documentation for the json operation rule and use similar code. If you are unsure of the data that is coming in, then I suggest you print out the objects and then check out your ccg.log to get an idea of the data coming in. Also, did you see the xml examples in the documentation: XML Response Examples