Chapter 3 DynaScript Predefined Objects
Represents an attribute in an XML element.
The XML element itself is represented by a DOMElement
object.
To use a DOMAttribute's property:
DOMAttribute.propertyName
To use a DOMAttribute's method:
DOMAttribute.MethodName( parameter )
DOMAttribute
objects
inherit the properties and methods of the DOMNode
object.
The attributes for a particular DOMElement
are
accessible via the attributes
property
of the DOMElement
object.
The parentNode
, previousSibling
,
and nextSibling
properties
of a DOMAttribute
object
are null.
The children of the DOMAttribute
object
represent the attribute's value. Attributes whose values
are inferred from the DTD are not yet supported and do appear within
the document tree.
DOMAttribute
objects
have all of the properties and methods of the DOMNode
object
as well as the properties defined here.
To obtain a DOMAttribute object in an existing
document, you can use the getAttributeNode
method
of a DOMElement object, or the attributes
property
of a DOMNode object.
To add a DOMAttribute object to a DOM document,
you can use the setAttributeNode
method
of a DOMElement object.
Copyright © 1999 Sybase, Inc. All rights reserved. |