Name

kxml.requirestart — Test if the current event is START_TAG type and do match the given name.

Synopsis

kxml.requirestart xmlParser name

Description

Test if the current event is START_TAG type do match the given name and any namesapce. If the test is not passed, an exception is thrown. The exception text indicates the parser position, the expected event and the current event that is not meeting the requirement.

# assert the current event is a START_TAG event "forecast_conditions"
kxml.requirestart $xmlParser "forecast_conditions"