Typed XML writer for Java