[sword-devel] Understanding the structure of generic books and their relationship with TreeKey.

Matthew Talbert ransom1982 at gmail.com
Mon Nov 2 22:20:10 MST 2009


This might be better. I'm probably still missing some logic.

void getSectionsList(TreeKey tk, list l)
 {
      l.append (tk->getText());
      if tk->hasChildren()
      {
          tk->firstChild();
          getSectionsList(tk, l);
      }
      while tk->nextSibling()
      {
          getSectionsList(tk, l);
      }
      tk->parent();
 }

Matthew



More information about the sword-devel mailing list