om.XmlReader.getTagName

Returns the tag name of the current processed element.

Syntax

getTagName()
  RETURNS 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()
             ...

For a complete example, see Example 1: Parsing an XML file.