Progress
Version 9
Product Update Bulletin


SAX-ATTRIBUTES Object

Interfaces
OS
SpeedScript
All
All
Yes

Contains information on the attributes of an XML element.

Progress creates the SAX-ATTRIBUTES object, passes it to the StartElement callback, and deletes it as soon as StartElement finishes.

An application cannot create a SAX-ATTRIBUTES object.

NOTE: If an application deletes a SAX-ATTRIBUTES object, no harm occurs.

To save the data from a SAX-ATTRIBUTES object, the application must save the individual data items.

SYNTAX

sax-attributes-handle [ :attribute | :method ] 

sax-attributes-handle

A handle to a SAX-ATTRIBUTES object.

attribute

An attribute of the SAX-ATTRIBUTES object. The attributes are summarized in Table D–9.

Table D–9: Attributes Of the SAX-ATTRIBUTES Object
Attribute
Type
Description
CHARACTER
An arbitrary string for use by the ADM only.
INTEGER
The number of XML attributes contained in a SAX-ATTRIBUTES object.
CHARACTER
An arbitrary string the application can use any way it wants.
CHARACTER
The type of a SAX-ATTRIBUTES handle, which is “SAX-ATTRIBUTES.”
INTEGER
A value guaranteed by Progress to be unique within the Progress session.

method

A method of the SAX-ATTRIBUTES object. The methods are summarized in Table D–10.

Table D–10: Methods Of the SAX-ATTRIBUTES Object
Method
Return Type
Description
INTEGER
Gets the index of the attribute with the given namespace name.
INTEGER
Gets the index of the attribute with the given XML qualified name.
CHARACTER
Gets the local (unqualified) name of the attribute at the given index.
CHARACTER
Gets the XML qualified name of the attribute at the given index.
CHARACTER
Gets the type of the attribute at the given index.
CHARACTER
Gets the type of the attribute at the given namespace name.
CHARACTER
Gets the type of the attribute with the given XML qualified name.
CHARACTER
Gets the namespace URI of the attribute at the given index.
CHARACTER
Gets the value of the attribute at the given index.
CHARACTER
Gets the value of the attribute with the given XML qualified name.
CHARACTER
Gets the value of the attribute with the given namespace name.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095