int CMarkup::GetElemLevel() const;
|
|
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