om.SaxAttributes.setAttributes

Clears the list and copies the attributes passed.

Syntax

setAttributes(
   attr om.SaxAttributes )
  1. attr is a reference to a list of attributes.

Usage

The setAttributes() method takes an existing om.SaxAttributes object reference and makes a copy of all attributes into the current attribute list.

Example

DEFINE curr, orig om.SaxAttributes
...
CALL curr.setAttributes(orig)

For a complete example, see Example 2: Creating a SAX attributes object.