Registry /
serialization / geronimo-stax-api-1-2-spec
Java API for Streaming XML (StAX) specification version 1.2, provided by Apache Geronimo.
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.
javax.xml.stream.XMLInputFactory
Creates an XML stream reader using the StAX API.
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamReader;
import java.io.StringReader;
public class Quickstart {
public static void main(String[] args) throws Exception {
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLStreamReader reader = factory.createXMLStreamReader(new StringReader("<root/>"));
System.out.println(reader.getLocalName());
}
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.