I am currently creating a kind of "jQuery port for Java". It is called jOOX and will provide most of the navigation and jQuery DOM manipulation methods. In addition to the simple choice expression language, standard XPath and XML conversion based on the standard Java DOM API is supported.
https://github.com/jOOQ/jOOX
Code example:
// Find the order at index for and add an element "paid" $(document).find("orders").children().eq(4) .append("<paid>true</paid>"); // Find those orders that are paid and flag them as "settled" $(document).find("orders").children().find("paid") .after("<settled>true</settled>");
Lukas Eder
source share