GetXML method also makes sure it uses invariant culture for serialization