Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The easiest way of parsing xml in Java, avoiding complex XPath learining...
tree: 18f9602bbe

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
lib
src/com/gioorgi/xml
test/com/gioorgi/xml
.classpath
.gitignore
.project
README.md

README.md

SimpleXMLParser

The easiest way of parsing xml in Java, avoiding complex XPath learning... Take a look to http://gioorgi.com/2012/simplexmlparser/ ‎ for a tutorial introduction

So What?

SimpleXMLParser simplify implementation of SAX-based XML Parser Take a look to the example package for a fast start.

Speed Introduction

To start, subclass SimpleXMLParser. Then if you want to read the code inside I wnat this string implement a simple method called public void do_MY_DEAR_TAG(String tagContent) { .... }

In the method, the tag are always in uppercase. The class is also able to parse tag attributes (see WordpressExportReader for an example)

The parser has an "ignore list" to skip tag sequence he thinks will throw a no such method error, improving performance. Because this feature is still experimental, you can turn it off with setOptimize(false)

Something went wrong with that request. Please try again.