Name

kxml.getname — For START_TAG or END_TAG events, the name of the current element is returned.

Synopsis

kxml.getname xmlParser

Description

For START_TAG or END_TAG events, the name of the current element is returned.

# loop over the stream until we reach the END_TAG event "current_conditions"
while {!= [strcmp [kxml.getname $xmlParser] "current_conditions"] 0 } {
    set name [kxml.getname $xmlParser]
    puts $name
    kxml.nexttag $xmlParser
}