문제

I know StAX is a pull parsing ... but i m wondering is there a possibility to save root cursor location/context.. visit child Cursor ...and later rewind root cursor to a saved location/context ?

Thanks

도움이 되었습니까?

해결책

Nope, there is no support for doing that in Stax API, or in Woodstox' extended API (stax2-api).

You could use XMLEventReader, store events, if that helps. It is still more efficient than re-parsing, although uses more memory than just holding on to underlying XML content.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top