Add values to an XML element

Madler0F9C

New Member
Looking to add more values in the DE_COMMS Element. Add it right at the beginning of the Element.\[code\]<OUTPUT version="2.0"> <RESPONSE> <DATA id="78387ea2f3384cd19e6d6c5d9eaf56a2" number="61" type="ADS" status_code="OK"/> <![CDATA[ <LOAN <INSURANCE_OPTIONS class="O" description=""/> <COMMS> <DE_COMMS> (11/16/2012 3:49:39 PM EST) (11/16/2012 3:32:21 PM EST): MANUAL SELECTION OF PRODUCT (11/16/2012 3:32:21 PM EST): </DE_COMMS> </COMMS> </LOAN> XDocument doc = XDocument.Parse(a.xml); var addElement = doc.Element("DE_COMMS").Add("Text...");\[/code\]Trying to something like above to add to the XElement but does not seem to do it.
 
Back
Top