Michiel Trimpe
Michiel Trimpe

Reputation: 329

Java XML Tool using method chaining/builder pattern

I remember that a while ago I found a truly great utility here on StackOverflow for manipulating XML documents with an interface like:

new XMLTool(document)
    .goTo("xpath")
    .addNode("name")
    .addChild()
    .addContent("xxx")
    .parent()
    .remove("oldNode);

Could anybody tell me what tool that was?

Upvotes: 0

Views: 828

Answers (2)

Michiel Trimpe
Michiel Trimpe

Reputation: 329

You've got to be kidding me. It's actually called XMLTool.

I must've had a brainfart while searching for it!

This is the URL: http://code.google.com/p/xmltool/

At least the next time someone searches for method chaining XML tool he'll find this post ...

Upvotes: 1

BalusC
BalusC

Reputation: 1108537

Maybe the java-xmlbuilder at Google code? It's indeed great in use.

Upvotes: 1

Related Questions