<Definition> <Definition ID="1" Name="COMPANY" xmlns=""/> </Definition>
<Definition id="1048591" Name="COMPANY"/>
[DataContract] public class Characeristic { [DataMember] public XElement Definition = new XElement("Definition"); }
Characteristic lstChars = new Characteristic(); lstChars.Definition.SetAttributeValue("ID", finalCharac.ID); lstChars.Definition.SetAttributeValue("Name", finalCharac.Name);
string TestXml = @"<Definition> <Definition ID='1' Name='COMPANY' xmlns=''/> </Definition > "; XElement x = XElement.Parse(TestXml); var def = x.Element("Definition"); Debug.Print(def.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)