Skip to content

tingley/snax-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snax-xml

SNAX exists to simplify XML parsing using the StAX (javax.xml.stream) event API by replacing hand-coded state machines with concise, descriptive code to select the content you care about. SNAX is small, simple, adds very little overhead to StAX, and contains no additional dependencies.

SNAX uses a simple EDSL to specify a set of element selectors, to which you attach callback interfaces. SNAX then uses this information to build a reusable NodeModel object, against which it parses the XML. XMLEvent data will be routed to the right pieces of code automatically. The EDSL is conceptually similar to basic XPath, although it is greatly simplified for the purposes of stream processing. The Getting Started page has a better explanation.

Building

SNAX builds with maven.

To use SNAX in your own project, add it as a dependency:

    <dependency>
      <groupId>net.sundell.snax</groupId>
      <artifactId>snax</artifactId>
      <version>0.10</version>
    </dependency>

Downloads

Check the Releases page.

About

Simplified XML stream parsing for Java.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages