An open API service indexing awesome lists of open source software.

https://github.com/jcabi/jcabi-xml

Java XML Parsing, Transforming, Printing, and Validating
https://github.com/jcabi/jcabi-xml

java java-xml java-xml-library xml xml-parsing

Last synced: 10 months ago
JSON representation

Java XML Parsing, Transforming, Printing, and Validating

Awesome Lists containing this project

README

          

# Simple XML Parsing and Traversing, in Java

[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![DevOps By Rultor.com](https://www.rultor.com/b/jcabi/jcabi-xml)](https://www.rultor.com/p/jcabi/jcabi-xml)

[![mvn](https://github.com/jcabi/jcabi-xml/actions/workflows/mvn.yml/badge.svg)](https://github.com/jcabi/jcabi-xml/actions/workflows/mvn.yml)
[![PDD status](https://www.0pdd.com/svg?name=jcabi/jcabi-xml)](https://www.0pdd.com/p?name=jcabi/jcabi-xml)
[![codecov](https://codecov.io/gh/jcabi/jcabi-xml/branch/master/graph/badge.svg)](https://codecov.io/gh/jcabi/jcabi-xml)
[![Javadoc](https://javadoc.io/badge/com.jcabi/jcabi-xml.svg)](https://www.javadoc.io/doc/com.jcabi/jcabi-xml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-xml/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-xml)

More details are here: [xml.jcabi.com](http://xml.jcabi.com/index.html).
Also, read this blog post: [Java XML Parsing Made Easy][blog].

It's a simple wrapper around DOM that makes XML parsing and printing
easy and simple, for example:

```java
XML xml = new XMLDocument(
"Coffee to go"
);
XML item = xml.nodes("//item[@id=4]").get(0);
String name = item.xpath("text()").get(0);
System.out.println(xml.toString());
```

## How to contribute?

Fork the repository, make changes, submit a pull request.
We promise to review your changes same day and apply to
the `master` branch, if they look correct.

Please run Maven build before submitting a pull request:

```bash
mvn clean install -Pqulice
```

[blog]: http://www.yegor256.com/2014/04/24/java-xml-parsing-and-traversing.html