X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=XMLTree.h;h=313f7ca82bb9c4649a74f08087dcc02ac7420513;hb=32dc08cc3c732aff96456d1a596bd3825c5c5c51;hp=676c214fba1c16e39ae65c3a79a438c997e57f1e;hpb=c1d20be32a0898087b8c7a0a170c3ec8bc6b8002;p=SXSI%2FXMLTree.git diff --git a/XMLTree.h b/XMLTree.h index 676c214..313f7ca 100644 --- a/XMLTree.h +++ b/XMLTree.h @@ -740,6 +740,10 @@ public: /** TaggedDesc(x,tag): returns the first node tagged tag with larger * preorder than x and within the subtree of x. Returns NULT if there * is none. */ + inline treeNode TaggedNext(treeNode x, TagType tag) + { + return tagpos2node(Tags->select_next(tag,node2tagpos(x))); + } inline treeNode TaggedDescendant(treeNode x, TagType tag) {