MCD_STR CMarkup::GetChildTagName() const;

This method returns the tag name of the current child position element. If there is no child position, it returns an empty string. So when you call FindChildElem() without an argument, you can call this diagnostic method to determine the tag name of the child element. That allows you to loop through the child elements of an element and act according to their tag names.