Blog: Java

Event-based XML parsing in Java

June 22, 2010, (updated on September 6, 2014), Software Development

Introduction On some inefficient devices or some programming languages there are only event-based XML parsers available. In this article I will show how to use such a parser in an easy way and how to read hierarchical XML structures. To use the described method the following artifacts are needed: A method for finding a start tag, with the name of the tag as a parameter A method for finding an end tag, with two parameters: One is the name and one is the value of the tag A stack for the created objects Implementation In the start method, the program […] Read more...

Tags: ,

  Page 1 of 1