parser StAX read and write  on cursor or iterator