om.SaxDocumentHandler.startElement
Processes the beginning of an element.
Syntax
startElement(
name STRING,
atts om.SaxAttributes )
- name is the tag name of the element.
- atts 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.
Example
DEFINE out om.SaxDocumentHandler
node om.DomNode,
attrs om.SaxAttributes,
x, c INTEGER
...
CALL attrs.clear()
LET c = node.getChildCount()
FOR x=1 TO c
CALL attrs.addAttribute( node.getAttributeName(x),
node.getAttributeValue(x) )
END FOR
CALL out.startElement( node.getTagName(), attrs )