XMLDocument
Wrapper of DOM4J for easy DOM- and XPath-based XML access.
Advantages:
- easy navigation through XML document
- getValue(attributeName) returns "" if attribute does not exist
- add(elementName) creates and appends new XML element in one operation
- easy XMLDocument to/from XML conversions
- many ways to save and load XMLDocument
- easy XPath access using selectNodes() or selectSingleNode()
- and some more special functions.
Use with Gradle:
compile 'de.mwvb:xmldocument:0.2.4'
Use with Maven:
<dependency> <groupId>de.mwvb</groupId> <artifactId>xmldocument</artifactId> <version>0.2.4</version> </dependency>