Posted on: 9/26/2014 8:53:34 PM | Views : 546

Iam trying to add few items to XelementArray [] which is a part of wcf request object.
In the generated proxy class the property is defined as
private XmlElement[] MetaData; Am adding element to this xelement array as below
XmlElement[] MetaDataDoc = new XmlElement[10]; string fileName = string.Empty; var xmldocm = new XmlDocument(); xmldocm.Load(fileName); MetaDataDoc = xmldocm.DocumentElement.ChildNodes.Cast<XmlElement>().ToArray(); If i add a breakpoint i could see only the child nodes are added  to the array . Am then setting this MeteDataDoc to MetaData property of wcf request
Here is the sample xml which i loaded to add elements to xmlarray
<DocumentTemplate> <MetaData> <FileName>Account Details</FileName> <Descript ...

Go to the complete details ...