A
Amy L.
I am trying to serialize a class to xml and I havent been able to figure out
how to add attributes. I am trying to get a node to look like this
<alert type="pager" >True</alert>
I have this so far which produces this
<alert>True</alert>
[XmlElement("alert")]
public string Alert
{
get { return this.alert ; }
set { this.alert = value ; }
}
How would I embed an XML Attribute into that?
Thanks
Amy.
how to add attributes. I am trying to get a node to look like this
<alert type="pager" >True</alert>
I have this so far which produces this
<alert>True</alert>
[XmlElement("alert")]
public string Alert
{
get { return this.alert ; }
set { this.alert = value ; }
}
How would I embed an XML Attribute into that?
Thanks
Amy.