Linq xml updating file


An XML document can be constructed using XElement like below.

LINQ to XML provides methods for getting the children of an XElement.

When maintaining the list, you need to add pairs, modify pairs, or delete pairs.

If you pass null for , this method removes the child element. The value is assigned to the first child element with the specified name.Hi I'm using the code below to update data elements based on if already exist or add new country if does not already exist. But I'm getting error message: Newvalues is not a member of 'System. Whether it be XML sources from a stream or file, or XML created dynamically in the code.Sales Order object is an XElement which holds the Salesorder xml.NET Framework Available since 3.5 Portable Class Library Supported in: portable .

You must have an account to comment. Please register or login here!