factored unmarshall utility function into XMLUtils