Registry / serialization / stax
library1.1-devjavamavenunverified

Reference implementation of the Streaming API for XML (StAX).

<dependency> <groupId>stax</groupId> <artifactId>stax</artifactId> <version>1.1-dev</version> </dependency>
INSTALL
IMPORT
SIG · STAX
S
stax
serializationjavav1.1-dev
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XMLInputFactory
javax.xml.stream.XMLInputFactory

Parse XML using StAX streaming API.

import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamReader; import java.io.StringReader; XMLInputFactory factory = XMLInputFactory.newInstance(); XMLStreamReader reader = factory.createXMLStreamReader(new StringReader("<root>data</root>")); while (reader.hasNext()) { reader.next(); if (reader.isStartElement()) { System.out.println("Element: " + reader.getLocalName()); } }
Debug
Known issues
gotchaThis implementation is outdated; prefer the JDK built-in StAX (JSR-173) or Woodstox.
fix
Use javax.xml.stream from the JDK or com.fasterxml.woodstox:woodstox-core.
affects: >=1.0
Upgrade
Version history
1.1-devlatest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
stax — mvn dependency:get stax · libregistry