|
|
|
|
|
|
| |
   
DOM objects
First we need to explain the various, common DOM objects that you will use with the MSXML DOM Object.
We will focus on the examples of these XML DOM objects shown in table .
0.0.1 XML DOM Objects
Object name
|
Description
|
DOMDocument
|
This object represents the root of the XML file.
|
XMLDOMElement
|
This object represents each element in the DOM- Document, namely the root, root element, and each other element.
|
XMLDOMNode
|
This object represents a single Node in the document tree and includes support for data types, namespaces, DTDs, and XML Schemas.
|
XMLDOMNodeList
|
Use this object to access (by name) and iterate through the XMLDOMNode collection.
|
XMLDOMNamedNodeMap
|
Use this object to access and iterate through the attributes in an element.
|
XMLDOMCDATASection
|
This object represents a section in the value of an ele ment that is closed in the CDATA section brackets, which are characters that cannot be parsed by the XML.
|
XMLDOMAttribute
|
This object represents a single attribute Node for a given element.
|
XMLDOMDocumentType
|
This object represents the Document Type (DTD) in an XML file.
|
XMLDOMEntity
|
This object represents an entity in the DTD section of the XML file.
|
XMLDOMProcessingInstruction
|
This object represents a processing instruction found in the XML file.
|
XMLDOMParseError
|
This object returns detailed information about the last error, including the line number, character position, and a text description.
|
XMLHTTPRequest
|
This object enables you to establish a connection to a web server from your code and send put, get, and other standard HTML requests.
|
In our examples, we will refer to these objects using the names listed in table .
0.0.1 XML object naming conventions (continued)
XML object interface
|
Our naming convention
|
DOMDocument
|
objDOMDocument
|
XMLDOMNode
|
objXMLDOMNode
|
XMLDOMNodeList
|
objXMLDOMNodeList
|
XMLDOMNodeListMap
|
objXMLDOMNodeListMap
|
XMLDOMParseError
|
objXMLDOMParseError
|
XMLDOMElement
|
objXMLDOMElement
|
XMLDOMAttribute
|
objXMLDOMAttribute
|    
This manuscript is an abridged version of a chapter
from the Manning
Publications book XML
Programming with VB and ASP. This chapter looks at the Microsoft DOM objects. NOTE: Most images have been removed to increase speed and many of the code comments have also been removed for presentation. Please purchase the book to enjoy the full experience of all the chapters with images and code comments!
|
|
|
|
|
|
|
|