XML helper for REST Interface