Name
MSXML3.0 Document Object
Synopsis
The Document object
supports the same functionality as the W3C DOM Document interface, but also features some
Microsoft convenience extensions. For example, with MSXML3.0, you
can use the validate method to
validate your document against its DTD:
myDomDocument.validate( )
In addition to validation, support for XSLT transformations is
built into the MSXML3.0 as well as with the transformNode method:
myDomDocument.transformNode(myXSLTDomDocument)
The transformNode method
takes another DOM instance as a parameter that contains an XSLT
stylesheet. The transformation is applied against the current
document, and the result is returned to the caller. The following
section is a reference for the different methods and properties of
the Document object.
MSXML3.0 Document Object Methods
abort( )Aborts an asynchronous download operation, if in progress.
createAttribute(name)Creates an attribute using the
namesupplied as a parameter.createCDATASection(data)Creates the character string
dataas a CDATA node and returns.createComment(data)Creates and returns a new comment using the supplied
dataas the contents.createDocumentFragment( )Creates and returns a new and empty document fragment.
createElement(elementName)Creates and returns a new element with the supplied name.
createEntityReference(name)Creates and returns a new entity reference object.
createNode(type, name, namespaceURI)Creates and returns a node of the given
type, using the suppliedname ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access