// https://github.com/hunterhacker/jdom/issues/31
// This tests should pass when issue 31 is resolved.
Element root = new Element("root");
root.addContent(new Text(" "));
root.addContent(new Text("x"));
root.addContent(new Text(" "));
Format mf = Format.getRawFormat();
mf.setTextMode(TextMode.TRIM_FULL_WHITE);
StAXStreamOutputter xout = new StAXStreamOutputter(mf);
StringWriter sw = new StringWriter();
XMLStreamWriter xsw = soutfactory.createXMLStreamWriter(sw);