int CMarkup::GetElemLevel() const;

CMarkup Developer License

GetElemLevel is only in CMarkup Developer and the free XML editor  FOAL C++ scripting.

This method returns the "level" of the current main position element. If there is no main position, it returns 0. If the current parent position is the root element, the main level is 1.

xml.FindElem(); // test
int nLev = xml.GetElemLevel(); // 0
xml.FindElem(); // A
nLev = xml.GetElemLevel(); // 1