StaxMate

StaxMate is a light-weight framework that adds convenience to streaming XML-processing without significant additional overhead. It builds on top of a Stax (JSR-173) compliant XML processors such as Woodstox or Sjsxp (default Stax implementation of JDK 1.6) and offers two basic abstractions: Cursors, which build on XMLStreamReaders and Output objects, which build on XMLStreamWriters.

License

License

BSD
GroupId

GroupId

com.fasterxml.staxmate
ArtifactId

ArtifactId

staxmate
Last Version

Last Version

2.4.0
Release Date

Release Date

Type

Type

bundle
Description

Description

StaxMate
StaxMate is a light-weight framework that adds convenience to streaming XML-processing without significant additional overhead. It builds on top of a Stax (JSR-173) compliant XML processors such as Woodstox or Sjsxp (default Stax implementation of JDK 1.6) and offers two basic abstractions: Cursors, which build on XMLStreamReaders and Output objects, which build on XMLStreamWriters.
Project Organization

Project Organization

FasterXML
Source Code Management

Source Code Management

http://github.com/FasterXML/StaxMate

Download staxmate

Dependencies

compile (1)

Group / Artifact Type Version
org.codehaus.woodstox : stax2-api jar 4.2.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.13.1
com.fasterxml.woodstox : woodstox-core jar 6.2.3

Project Modules

There are no modules declared in this project.

StaxMate -- the perfect companion for a Stax processor!

StaxMate is an Open Source helper library (or, mini-framework), written in Java, designed to simplify common tasks for which Stax-based streaming pull parsers are used (and good) for. This simplification, and added convenience is to be achieved without compromising positive performance characteristics of good Stax implementations, such as low memory usage and high processing throughput.

As with Stax API, input and output sides are separate, and distinction may be even more pronounced. However, whereas Stax API has division between "raw" cursor API, and more object-oriented Event API, StaxMate presents only a single level of abstraction, on input and output sides. StaxMate reader-side abstractions are mostly based on Cursor API, but some support for Event API is also planned for interoperability purposes.

Status

Build Status

Stax implementations supported

StaxMate aims to be implementation dependant, so in theory any compliant Stax implementation should be usable. In practice, some implementations may work better than others -- you may want to check out Stax-related email lists for comments on which implementations wor best.

As of version 1.2, following implementations are known to work well enough to pass StaxMate unit tests:

Since the initial development was done against Woodstox Stax processor, Woodstox is probably least likely to have problems with StaxMate. There are also some known issue with SJSXP: specifically, it tends to write unnecessary namespace declarations.

Licensing

StaxMate is licensed under BSD 2

Documentation, downloads

Check project Wiki.

Maven coordinates

Newer versions (2.1.x and above) of StaxMate use following Maven coordinates:

<dependency>
  <groupId>com.fasterxml.staxmate</groupId>
  <artifactId>staxmate</artifactId>
<dependency>

Older versions (1.1 through 2.0) instead use group id of org.codehaus.staxmate.

Authors

Author of StaxMate is Tatu "cowtowncoder" Saloranta, [email protected]

Other people who have participated in development (usually by submitting bug reports and patches) are listed in 'CREDITS' file. They are considered co-authors of StaxMate, and are integral to the quality of the codebase.

com.fasterxml.staxmate

FasterXML, LLC

Versions

Version
2.4.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0