I have a question about deserialization.
It’s a part of xml file
<N Name="MyName">Number of MyName</N>
and class in c#:
MyN
{
[XmlAttribute(AttrName='Name')]
public string Name {get;set;}
public string Number {get;set}
}
I want to make that value of N in xml file (in samle – “Number of MyName”) will deserialze in property Number of MyN class.
Thanks.
Use [XmlText()] Attribute
Check this for more information about Xml Serialization in C#
http://www.dotnetjohn.com/articles.aspx?articleid=173