From: tony y. <gao...@gm...> - 2006-07-29 15:24:12
|
Hi all: I know the VTD-XML is based on some kind of cursor navigation. But I searched all API docs and can't find how to random access the token I wanted. Just a method: if (vn.toElement(VTDNav.NEXT_CHILD,"*")) { //any action } I think it's not good enough to process my xml. I need another method to achieve this: method(){ ancestorTokenIndex = vn.getCurrentIndex(); } ... foo(){ vn.toIndex(ancestorTokenIndex); int t = vn.getText(); String text = vn.toNormalizedString(t) ; ... } Why I need more arbitrary random access? I just need it. And I think it's easy to implement because VTD-xml design concept, isn't it? -- Kindly Regards Tony =============================== |