Get the treenode Label, if not Label will return tagName.
string get_node_label( const TreeNode & tr, bool bGetLabelFirst = true )
Return the Label of the treenode, if not label return tagName; if bGetLabelFirst = false, return tagname.
EX1
int get_node_label_ex1() { Tree tr; TreeNode tn = tr.AddNode("tagName"); tn.SetAttribute(STR_LABEL_ATTRIB,"Label"); string strTagName = get_node_label(tn, false); string strLabel = get_node_label(tn); return 1; }
origin.h