We are moved to new domain
Click -> www.ehowtonow.com
Thursday, 5 March 2015

Java StAX API Overview

The StAX API exposes methods for iterative, event-based processing of XML documents. The StAX API is bidirectional, enabling both reading and writing of XML documents.The StAX API is really two distinct API sets

1. Cursor API

2. Iterator API

Cursor API 

As the name implies, the StAX cursor API represents a cursor with which you can parse an XML document from beginning to end. This cursor can point to one thing at a time, and always moves forward, never backward, usually one element at a time.

The two main interfaces in cursor are

1. XMLStreamReader

2.  XMLStreamWriter

Iterator API

The StAX iterator API represents an XML document stream as a set of discrete event objects. These events are pulled by the application and provided by the parser in the order in which they are read in the source XML document.The base iterator interface is called XMLEvent. The primary parser interface for reading iterator events is XMLEventReader, and the primary interface for writing iterator events is XMLEventWriter

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Java StAX API Overview Rating: 5 Reviewed By: eHowToNow