zauberlabs/leviathan — pull request #3 by jcodagnone (2013-03-30 14:00:06+00:00)
Title: Now we can use custom code to transform XML documents

In the fluent api we can provide Pipe to transform an xml to an
instance of an object using custom code (like JOOX), and to transform to
another xml (Pipe). Example:

final ProcessingFlow flow = Leviathan.flowBuilder().afterFetch()
.sanitizeHTML()
.toJavaObject(new Pipe() {
@Override
public Link execute(final Node input) {
Match find = $(input).find("main_content")
.filter("#pfoo");
// ....
return new XXXX(....);
}
})