Manage XML document

MyAnswersSuck

New Member
I can not find an easy way to do what I'm asking for.I have an object:\[code\]public class Item{ public string Name { get; set; }}\[/code\]And i want to:1) Create the xml document:\[code\]<?xml version="1.0" encoding="utf-8"?><Items> <Item Name="Item1"/> <Item Name="Item2"/></Items>\[/code\]2) Read the xml document:\[code\]for each NodeT node in MyXMLDocument{ Item i = new Item(node);}\[/code\]3) Manage the xml document, for example delete Item1 and add Item3 (or change attribute value)\[code\]<?xml version="1.0" encoding="utf-8"?><Items> <Item Name="Item2"/> <Item Name="Item3"/></Items>\[/code\]How can I do this as simply as possible?Thanks.
 
Back
Top