1

Right now when I serialize a string with whitespaces I get an empty string when deserializing it

I want to do something like this:

[XmlAttribute("xml:space=preserve")]
public string Category { get; set;}

and get this :

<Category xml:space="preserve">    </Category>

so when I deserialize it with the Xmlserializer I can get the whitespaces back.

elios264
  • 384
  • 4
  • 19

0 Answers0