added examples to test
normalized template string by parsing xml and generating xml string on way in to easily test output.