Closed rsinnig closed 1 year ago
Failed test caused by different XML-formatting of obsolete XmlExt.WriteAttribute and new internal XmlWriteExt.WriteElementString While XmlExt.WriteAttribute is writing start tag, value, end tag (no new line and tabs inserted) the XmlWriteExt.WriteElementString is creating nice formatting with newline and tabs as long as XmlWriter is not explicitly configured to omit these.
From my perspective the XmlSerializer test needs to be modified.
The test procedure public static T XmlSerializerRoundTrip
@rsinnig @JohanLarsson any progress on this?
No progress
Is this a legitimate concern/bug? Should we fix this? Apologies, but I am not really sure I understand what the problem is. If yes, can someone else from the team take of it?
I don't remember either, sorry.
Ok, fair enough. I propose we give this issue one month time, and if it is not addressed till then, we reject it. Agree? @rsinnig @JohanLarsson
I think I understand now what the issue is, having worked in #208. I also think that WriteElement
is a better approach.
I have noticed that there is an existing branch open. Can you @JohanLarsson @Jones-Adam please have a look, that my commits in this PR are heading in the right direction?
The serialization branch is quite old, and not actively maintained.
I am trying to unify the XML serialization and data contract tests, it seems like a bit messy at the moment.
As discussed in cancelled pull request for fix in obsolete XmExt: Fix of the XML serialization issue (writing without InvariantCulture) by replacing all calls to obsolete extension method XmlExt.WriteAttribute by XmlWriteExt.WriteElement.