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

Extracting portions of an image

shape alpha vs layer alpha in cc library

Photoshop CC 2017 - Ruler Tool - Error 8007...