improved jdom2 support in XmlWriter