Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## SAX-attributes object handle

> Contains the attribute values of an XML element in a SAX-reader object. The purpose of the object is to hold values needed by the SAX parser to set the attribute values of a new XML element as it adds the element to a SAX-reader object. As such, the object is automatically created when the SAX-reader PARSE( ) method calls the START-ELEMENT callback procedure. The SAX-attributes object is destroyed when the START-ELEMENT callback completes.

> Because the SAX-attributes object exists for a short scope, you cannot access the object before or after the life-cycle of the START-ELEMENT callback. For this reason, you should create data elements with a longer scope if you need to save values from a SAX-attributes object.

> #### Syntax

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

> ``sax-attributes-handle``

> A variable of type HANDLE.

> ``attribute``

> An attribute of the SAX-attributes object.

> ``method``

> A method of the SAX-attributes object.

> #### Attributes

> ADM-DATA attribute | NUM-ITEMS attribute | PRIVATE-DATA attribute
> TYPE attribute | UNIQUE-ID attribute |

> #### Methods

> GET-INDEX-BY-NAMESPACE-NAME( ) method | GET-INDEX-BY-QNAME( ) method
> GET-LOCALNAME-BY-INDEX( ) method | GET-QNAME-BY-INDEX( ) method
> GET-TYPE-BY-INDEX( ) method | GET-TYPE-BY-NAMESPACE-NAME( ) method
> GET-TYPE-BY-QNAME( ) method | GET-URI-BY-INDEX( ) method
> GET-VALUE-BY-INDEX( ) method | GET-VALUE-BY-NAMESPACE-NAME( ) method
> GET-VALUE-BY-QNAME( ) method |

> #### See also

> CREATE SAX-READER statement, SAX-reader object handle

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