Registry / serialization / xml-apis

xml-apis

JSON →
library2.0.2javamavenunverified

Provides standard XML processing APIs including DOM, SAX, and StAX interfaces.

<dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>2.0.2</version> </dependency>
INSTALL
IMPORT
SIG · XML-APIS
X
xml-apis
serializationjavav2.0.2
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.

DocumentBuilderFactory
javax.xml.parsers.DocumentBuilderFactory

Parse an XML file using DOM

import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; public class Main { public static void main(String[] args) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse("file.xml"); System.out.println(doc.getDocumentElement().getNodeName()); } }
Debug
Known issues
gotchaxml-apis is often a transitive dependency and may cause classpath conflicts with newer XML implementations.
fix
Ensure consistent XML API versions across dependencies or use the java.xml module in Java 9+.
affects: all
Upgrade
Version history
2.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
xml-apis — mvn dependency:get xml-apis · libregistry