Category Archives: XML

How to parse XML documents using Streaming API for XML (StAX)

Streaming API for XML provides interface XMLStreamReader which gives a low-level but very efficient cursor-like API for reading XML documents. When using it we iterate over various events in XML document and extract information about these events. Once we are … Continue reading

Posted in Java, XML | Tagged , , | 1 Comment

How to write XML documents using Streaming API for XML (StAX)

Nowadays XML became a de-facto standard for storing and exchanging documents over Internet. And because it was designed to be extensible, it can be easily adapted to almost every need. In this post I would like to describe how to … Continue reading

Posted in Java, XML | Tagged , , | 2 Comments