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

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working