XRENDERING-281: Create a generic reusable XML serailizer/parser based on listener methods