The XML class in the .NET Framework provides a comprehensive and integrated class set, allowing you to use XML documents and data. The XML class in .NET Framework can be divided into groups: Analyze and write XML with XMLReader and XMLWriter, use XMLValidatingReader to verify XML, and edit the XML document with XMLDocument. XSLTransform, Xmlschema, and XPathnavigator classes support perform XSL conversion (XSLT), editing the XML Architecture Definition Language (XSD) architecture and application XPath query.
E.g:
Private void poplist (listbox lbusers) {lbusers.Items.clear (); xmldocument xdoc = new xmldocument (); xdoc.load ("users.xml"); xmlnodelist xlist = xdoc.selectnodes ("// user"); well (Xmlnode xnode in xlist) {lbusers.Items.add (xnode.childnodes.Item (0) .innertext);}}