class C {
[XmlElement("txt")]
public string Txt {get; set;}
}
When serializing the above with ' " & < >
, the output is ' " & < >
Why 开发者_如何学Goisn't ' and " encoded to '
and "
?
Quotes must be encoded within attributes, its not required when inside an XML element text.
精彩评论