Chapter 3 DynaScript Predefined Objects


DOMDocument object

Object

Represents an XML document.

Syntax

To use a DOMDocument's property:

DOMDocument.propertyName

To use a DOMDocument's method:

DOMDocument.MethodName( parameter ) 

Description

The DOMDocument object represents the root of the DOM document node tree, and provides the primary access to the document's data.

You can create a DOMDocument object either by calling the toDOMDocument method, or by invoking the DOMDocument constructor.

DOMDocument objects inherit all of the properties and methods of the DOMNode object as well as the properties and methods defined here.

Dynamo's current implementation of DOM follows the DOM Level 1 specification.

Example

This statement creates a new, empty DOMDocument object.

doc = new DOMDocument()

 


Copyright © 1999 Sybase, Inc. All rights reserved.