How to iterate Hitmatches?


hi all,

 

how iterate hitmatches?

 

idocument *doc = utils<ilayoutuiutils>()->getfrontdocument();

uidref docref = ::getuidref(doc);

k2vector<widestring> xpaths;

xpaths.push_back(widestring("//xref[@ref-type]"));

idatabase *db = docref.getdatabase();

interfaceptr<iidxmlelement> rootelement(utils<ixmlutils>()->queryrootelement(db));

hitmatches matches;

utils<ixmlparserutils>()->evaluatexpathsforelement(xpaths, rootelement, matches, 0);

 

regards,

chinna



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

Reader DC

Adobe InDesign CC 2017 has stopped working

Acrobat DC体験版の試用期間が7日間となってしまう。14日間との認識です が?