More details are here: xml.jcabi.com
It's a simple wrapper around DOM that makes XML parsing and printing easy and simple, for example:
XML xml = new XMLDocument("<orders><order id="4">Coffee to go</order></orders>");
String id = xml.xpath("//order/@id").get(0);
String name = xml.xpath("//order[@id=4]/text()").get(0);
System.out.println(xml.toString());
You need just this dependency:
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-xml</artifactId>
<version>0.8</version>
</dependency>
If you have any questions about the framework, or something doesn't work as expected, please submit an issue here. If you want to discuss, please use our Google Group.
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:
$ mvn clean install -Pqulice