snax-xml

SNAX is a library to simplify the creation of state machines that consume StAX inputs to extract and process content.

License

License

Categories

Categories

Net
GroupId

GroupId

net.sundell.snax
ArtifactId

ArtifactId

snax
Last Version

Last Version

0.10
Release Date

Release Date

Type

Type

jar
Description

Description

snax-xml
SNAX is a library to simplify the creation of state machines that consume StAX inputs to extract and process content.
Project URL

Project URL

https://github.com/tingley/snax-xml
Source Code Management

Source Code Management

https://github.com/tingley/snax-xml

Download snax

How to add to project

<!-- https://jarcasting.com/artifacts/net.sundell.snax/snax/ -->
<dependency>
    <groupId>net.sundell.snax</groupId>
    <artifactId>snax</artifactId>
    <version>0.10</version>
</dependency>
// https://jarcasting.com/artifacts/net.sundell.snax/snax/
implementation 'net.sundell.snax:snax:0.10'
// https://jarcasting.com/artifacts/net.sundell.snax/snax/
implementation ("net.sundell.snax:snax:0.10")
'net.sundell.snax:snax:jar:0.10'
<dependency org="net.sundell.snax" name="snax" rev="0.10">
  <artifact name="snax" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sundell.snax', module='snax', version='0.10')
)
libraryDependencies += "net.sundell.snax" % "snax" % "0.10"
[net.sundell.snax/snax "0.10"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.10
0.9