C # Xml.Serialization node to rename

Rename the node XmlElement

XmlRoot heavy root name

XmlArray List collection to add a root node

XmlArrayItem List renaming a collection of child nodes

 

[The Serializable] This class can be serialized class labeled
[XmlRoot ( "root")] can be specified root node name xml reassigned, if this added feature of such sequence when used as the class name defaults to root node
[the XmlElement ( "code")] 
[XmlIgnore] this feature ignores this property
[XmlAttribute ( "attr")] in this property as a characteristic element

Guess you like

Origin www.cnblogs.com/zhang1f/p/11666930.html