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 Bugfix #46 (broken Optional) Oct 31, 2017
doc Finished API landscape generation. Jun 14, 2017
src release notes for 1.4.16 Jun 7, 2018
.classpath Extended exception feature to updates and deletes Oct 28, 2016
.gitignore Merge branch 'master' into siteContent Mar 13, 2016
.project Initial adding files Dec 21, 2012
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FC%2B%2B_%28programming_language%29.tmp Wikipedia pages changed. Adding cached pages. Mar 10, 2016
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FC_%28programming_language%29.tmp Wikipedia pages changed. Adding cached pages. Mar 10, 2016
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FJava_%28programming_language%29.tmp Wikipedia pages changed. Adding cached pages. Mar 10, 2016
JUnitHttpProxy.http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FScala_%28programming_language%29.tmp Wikipedia pages changed. Adding cached pages. Mar 10, 2016
JUnitHttpProxy.http%3A%2F%2Fmaps.google.com%2Fmaps%2Fapi%2Fgeocode%2Fxml%3Faddress%3DInfinite%2520Loop%2C%2520Cupertino%2C%2520CA%252095014%2C%2520USA%2522.tmp Add cached web data for stable junit tests Jun 7, 2018
JUnitHttpProxy.http%3A%2F%2Fweather.service.msn.com%2Ffind.aspx%3Foutputview%3Dsearch%26weasearchstr%3DMonschau.tmp Weather data service does not exist anymore. Adding cached response. Mar 10, 2016
LICENSE Added license Dec 25, 2012
README.md Update README.md Jun 17, 2017
logging.properties enable JUL logging for network classes Jun 30, 2013
make_bundle.sh minor fix in bundle creation script Mar 27, 2014
pom.xml Set version to 1.4.16 Jun 7, 2018
verify_signatures.sh adaption for non MacOs hosted bundle building Mar 27, 2014

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