Not all platforms support this API (e.g. Android). Strip the prettyPrint() method since it wasn't used anyway. Also move XmlUtil in a more appropriate package.