1.

Explain XMLStreamReader Class of StAX parser.

Answer»

This class provide iterator of events which can be used to iterate over events as they occur while parsing the XML document

  • int next() - used to retrieve next event.

  • boolean hasNext() - used to check further events exists or not

  • String getText() - used to get text of an element

  • String getLocalName() - used to get name of an element



Discussion

No Comment Found