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
Post a Comment