Name

kxml.requireend — Test if the current event is END_TAG type and do match the given name.

Synopsis

kxml.requireend xmlParser name

Description

Test if the current event is END_TAG type and do match the given name and any namespace. 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 we have reach the END_TAG event of "forecast_conditions"
kxml.requireend $xmlParser "forecast_conditions"