Java XML library. A really cool one. Obviously.
Java CSS Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
doc
src
.classpath
.gitignore
.project
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FC%2B%2B_%28programming_language%29.tmp
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FC_%28programming_language%29.tmp
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FJava_%28programming_language%29.tmp
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FScala_%28programming_language%29.tmp
JUnitHttpProxy.http%3A%2F%2Fweather.service.msn.com%2Ffind.aspx%3Foutputview%3Dsearch%26weasearchstr%3DMonschau.tmp
LICENSE
README.md
logging.properties
make_bundle.sh
pom.xml
verify_signatures.sh

README.md

XMLBeam

This is a Java XML library with an extraordinary expressive API. By using XPath for read and write operations, many operations take only one line of Java code.
This is how it looks:

<xml>
   <example>
      <content type="foo" >bar</content>
   </example>
</xml>

Access XML content in an object oriented way:

public interface Example {
    
    // This is a getter for the attribute "type"
    @XBRead("/xml/example/content/@type")
    String getType();
    
    // This is a getter and a setter for the value of the element "content"
    @XBAuto("/xml/example/content")
    XBAutoValue<String> content();
}

Example example = new XBProjector().io().file("example.xml").read(Example.class);
String type = example.getType(); // "foo"
String content = example.content().get(); // "bar"
example.content().set("new value");

Or, direct access via XPath enabled collection types:

Map<String,String> map = new XBProjector().io().file("example.xml").readAsMapOf(String.class);
String type = map.get("/xml/example/content/@type");
String content = map.get("/xml/example/content");
map.put("/xml/example/content","new value");

Learn more on xmlbeam.org