om.XmlReader.getTagName

Returns the tag name of the current processed element.

Syntax

getTagName()
  RETURNING result STRING

Usage

Use the readXmlFile() method to get the tag name of the current processed element, in the StartElement or EndElement event context.

Example

DEFINE r om.XmlReader,
       e STRING
   ...
   LET e = r.read()
   WHILE e IS NOT NULL
     CASE e 
       ...
       WHEN "StartElement"
         DISPLAY "TagName = ", r.getTagName()
             ...