Chapter 3 DynaScript Predefined Objects
Represents an XML document.
To use a DOMDocument's property:
DOMDocument.propertyName
To use a DOMDocument's method:
DOMDocument.MethodName( parameter )
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.
toDOMDocument
parses
an existing XML document and returns a DOMDocument
object
representing the document contents.
DOMDocument
constructor
creates an empty DOMDocument
object.
The node object creation methods on the DOMDocument
can
then be called to create new node objects. The created DOMNode
objects
have an ownerDocument
property
which associates them with the DOMDocument
within
whose context they were created.
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.
This statement creates a new, empty DOMDocument
object.
doc = new DOMDocument()
Copyright © 1999 Sybase, Inc. All rights reserved. |