I have just now asked the same question:
A nice Java XML DOM utility
And I have found these solutions that are similar:
But xmltool is not as powerful as jQuery's fluent API, gwtquery and jsoup are built for HTML documents with CSS, etc, jsoup doesn't wrap org.w3c.dom
but created its own non-standard DOM model
So I'm rolling my own:
http://code.google.com/p/joox/
Some examples:
// 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>");
// Add a complex element
$(document).find("orders").append(
$("order", $("date", "2011-08-14"),
$("amount", "155"),
$("paid", "false"),
$("settled", "false")).attr("id", "13");