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?