checkClosingTag static method
Ensure that the expected tag matches the actual one.
Implementation
static void checkClosingTag(String expectedName, String actualName,
{String? buffer, int? position}) {
if (expectedName != actualName) {
throw XmlTagException.mismatchClosingTag(expectedName, actualName,
buffer: buffer, position: position);
}
}