mmital, Try this (didn't check, but should be close):
AttributeList &fns = pModule->getEntryAttributes()["Footnote"]; for (AttributeList::iterator f = fns.begin(); f != fns.end(); f++) Footnotes.Add(pModule->RenderText(f->second["body"])); -Troy. mmital wrote: > Hi, > > I was wondering how to obtain footnotes in a particulat format (example, > a valid HTML or RTF text). > > Currently, I am using the following method that gives me the raw > footnote string: > > > > CStringArray Footnotes; > > for (i1 = pModule->getEntryAttributes().begin(); i1 != > pModule->getEntryAttributes().end(); i1++) > > for (i2 = i1->second.begin(); i2 != i1->second.end(); i2++) > > for (i3 = i2->second.begin(); i3 != i2->second.end(); i3++) > > { > > CString first = i3->first; > > CString second = i3->second; > > first.MakeLower(); > > if(first == "body") Footnotes.Add(second); > > } // end of i3 iteration > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 _______________________________________________ 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