Using XML in the .NET Framework "  Chapter 4 133 Table 4.11  Continued Type Name Description Method AppendChild() Adds the specified node to the end of the list of children of this node. Method InsertAfter() Inserts the specified node immediately after the context node. Method InsertBefore() Inserts the specified node immediately before the context node. Method PrependChild() Adds the specified node to the begin- ning of the list of children of this node. Method RemoveAll() Removes all children from this node. Method RemoveChild() Removes the specified child from this node. Method ReplaceChild() Replaces the old child node with a new child node. Method SelectNodes() Selects a list of nodes that match an XPath expression. Method SelectSingleNode() Selects the first node that matches an XPath expression. Remember that XmlNode is the base class for all node types in a .NET XML document, so every method in XmlNode is available in any node that inherits from it.The next node type to look at is the second most important when working with the System.Xml namespace, the XmlDocument class. See Table 4.12 for the XmlDocuments properties and methods. Table 4.12 XmlDocument Methods and Properties Type Name Description Property DocumentElement Gets the root XmlElement in the XML document. Property DocumentType Gets the node containing the DOCTYPE declaration. Property InnerXML Overridden version of the XmlNodes implementation. Property Name Overridden version of the XmlNodes implementation. www.syngress.com Continued 155_xml_net_pd_C04.qk  3/6/02  1:57 PM  Page 133