www.syngress.com n Find the root node in a XML document. n Find a list of elements with a given tag name. n Get a list of children of a given node. n Get the parent of a given node. n Get the tag name of an element. n Get the data associated with an element. n Get a list of attributes of an element. n Get the tag name of an attribute. n Get the value of an attribute. n Add, modify, or delete an element in the document. n Add, modify, or delete an attribute in the document. n Copy a node in a document (including subnodes). The DOM is not a programming tool or COM object or anything you can directly program against.The W3C does not have a team of developers creating applications and tools to provide developers with the ability to read and write XML documents.The W3C simply works on creating recommendations for standards, so when a Java developer accesses XML, then switches to using Microsofts XML parser (MSXML), then to a parser written in C, access to the XML data is the same, and the developer does not need to learn new tools and methodologies. The Different XML DOM Levels DOM Level 1 is effectively the building block for all DOM-based XML parsers. This level provides definitions for every part of the most basic XML document. If you consider the XML in Figure 4.1, you will see a number of different types of elements.An element is defined by DOM Level 1 to be an element, text, comment, processing instruction, CDATA section, or an entity reference. In addition to the elements in the XML, there is the processing instruction ( <? ?> tag ), a document element ( the <addressBook> element ), and a number of attributes. For more information on DOM Level 1, go to www.w3.org/TR/REC-DOM-Level-1/ level-one-core.html. Using XML in the .NET Framework "  Chapter 4 113 155_xml_net_pd_C04.qk  3/6/02  1:57 PM  Page 113