Start using XOM, an xml library for java.

Hopefully using XOM will solve some of the escaping issues
that were being experienced when sending XML via the
command line.