Just so there isn't confusion, I've corrected mine to match Troy's link. My chaining back up was incorrect.
void getSectionsList(TreeKey *tk, list l) { l.append (tk->getText()); if tk->hasChildren() { tk->firstChild(); getSectionsList(tk, l); tk->parent(); } while tk->nextSibling() { getSectionsList(tk, l); } } _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page