Java 8 Friday Goodies: Lambdas and XML

At Data Geekery, we love Java. And as we're really into jOOQ's fluent API and query DSL, we're absolutely thrilled about what Java 8 will bring to our ecosystem. We have blogged a couple of times about some nice Java 8 goodies, and now we feel it's time to start a new blog series, the... … Continue reading Java 8 Friday Goodies: Lambdas and XML

A jOOX First-Time Experience Article

Here's some nice first-time user experience about jOOX, my lesser-known product: http://www.kubrynski.com/2013/03/as-developer-i-want-to-use-xml.html As a reminder, here's what jOOX is all about: jOOX stands for Java Object Oriented XML. It is a simple wrapper for the org.w3c.dom package, to allow for fluent XML document creation and manipulation where DOM is required but too verbose. jOOX only … Continue reading A jOOX First-Time Experience Article

jOOX and XSLT. An XML love story, continued

The somewhat functional way of thinking involved with jOOX's XML manipulation cries for an additional API enhancement simply supporting XSLT. XSL transformation has become quite a standard way of transforming large amounts of XML into other structures, where normal DOM manipulation (or jOOX manipulation) becomes too tedious. Let's have a look at how things are … Continue reading jOOX and XSLT. An XML love story, continued

CSS selectors in Java

CSS selectors are a nice and intuitive alternative to XPath for DOM navigation. While XPath is more complete and has more functionality, CSS selectors were tailored for HTML DOM, where the document content is usually less structured than in XML. Here are some examples of CSS selector and equivalent XPath expressions: CSS: document > library > books > … Continue reading CSS selectors in Java

Use Xalan’s extension functions natively in jOOX

jOOX aims at increased ease of use when dealing with Java's rather complex XML API's. One example of such a complex API is Xalan, which has a lot of nice functionality, such as its extension namespaces. When you use Xalan, you may have heard of those extensions as documented here: http://exslt.org These extensions can typically … Continue reading Use Xalan’s extension functions natively in jOOX

jOOX answers many Stack Overflow questions

When you search for Stack Overflow questions regarding XML, DOM, XPath, JAXB, etc, you could very often answer them simply with an example involving jOOX. Take this question extract for example: Goal My goal is to achieve following from this ex xml file : <root> <elemA>one</elemA> <elemA attribute1='first' attribute2='second'>two</elemA> <elemB>three</elemB> <elemA>four</elemA> <elemC> <elemB>five</elemB> </elemC> </root> … Continue reading jOOX answers many Stack Overflow questions

jOOX and JAXB

jOOX has been awfully quiet lately due to increased development focus in jOOQ. Nevertheless, the jOOX feature roadmap is full of promising new features. Unlike its inspiration jquery, jOOX is positioning itself in the Java world, where many XML API's already exist. One of the most important XML APIs in Java is JAXB, a very … Continue reading jOOX and JAXB

FluentDOM, another mimick of jQuery DOM manipulation, in PHP

The triumph of jQuery over any other XML API seems prominent, in many languages. Here is another example of a nice jQuery-port to PHP: FluentDOM. http://fluentdom.github.com/ Similar to jOOX, FluentDOM aims to combine a jQuery-like fluent API with XPath and general DOM XML manipulation. Here are some simple examples taken from the FluentDOM documentation: // … Continue reading FluentDOM, another mimick of jQuery DOM manipulation, in PHP

Another Fluent API: jOOX. Porting jQuery to Java

Recently, in my every day programming madness, I really felt the urge to kill someone involved with the formal specification of DOM. The beloved Document Object Model. While everyone understands that this API is complete in functionality and scope and it's a standard, and it's almost the same in every language.... well it's incredibly verbose. … Continue reading Another Fluent API: jOOX. Porting jQuery to Java