CMarkup GetElemLevel Method

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.

<test>
  <A/>
</test>  
xml.ResetPos();
xml.FindElem(); // test
int nLev = xml.GetElemLevel(); // 0
xml.IntoElem();
xml.FindElem(); // A
nLev = xml.GetElemLevel(); // 1