Home   |   Products   |   Documentation
 

dev net revision
29 July 2008
 

 
 

GetElemLevel Method

int CMarkup::GetElemLevel() const;

GetElemLevel is only in CMarkup Developer.

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
 
 

Question or comment about this article?

©Copyright 2008 First Objective Software, Inc. All rights reserved.