What exactly looking for from SF for real time. Events are available in SF under Intelligent Service Center. For Example, when Hire/term happens in the SF, it will push data to CPI.
My preferred approach is XSLT only but we can try for few cases ${bodyAs(String).replace('</GroupValue>','<Notification>Dummy</Notification></GroupValue>')}InputOutput