Extract common functionality from manipulation of XML nodes
Add initial support for compact data messages