StAX API extensions