om.SaxDocumentHandler.startElement

Processes the beginning of an element.

Syntax

startElement(
   tagname STRING,
   attrs om.SaxAttributes )
  1. tagname is the tag name of element.
  2. attrs is the list of attributes of the element.

Usage

The startElement() method processes the beginning of an element with the SAX interface.

Use the om.SaxAttributes methods to handle the attributes of an element.

DEFINE out om.SaxDocumentHandler,
       attrs om.SaxAttributes,
       node om.DomNode,
       x INTEGER
...
CALL attrs.clear()
FOR x=1 TO r.getAttributesCount()
    CALL attrs.addAttribute( node.getAttributeName(x), node.getAttributeValue(x) )
END FOR
CALL out.startElement( node.getTagName(), attrs )