Chapter 3 DynaScript Predefined Objects
Represents an element in an XML document.
To use a DOMElement's property:
DOMElement.propertyName
To use a DOMElement's method:
DOMElement.MethodName( parameter )
The getAttributes
method
of the DOMNode
object can
be used to get the set of all attributes for an element. The getAttribute
and getAttributeNode
methods
on the DOMElement
object
can be used to retrieve individual attributes.
DOMElement
objects
have all of the properties and methods of the DOMNode
object
as well as the properties and methods defined here.
This example contains three elements - invoice, customer, and total:
<invoice >
<customer>Jina Janson</customer>
<total>$23.95</total>
</invoice>
Copyright © 1999 Sybase, Inc. All rights reserved. |
![]() |