Betwixt looks like what I've been looking for: a way to turn existing JavaBeans into XML conforming to an existing DTD and vice versa.