// Test whitespace preservation
s = "<element>\n\n<e2/> testing\n\n</element>";
de.setAsText(s);
assertTrue("Document :\n" + de.getAsText() + "\nvs\n" + s, de.getAsText().trim().endsWith(s));
ElementEditor ee = new ElementEditor();
s = "<element>text</element>";
ee.setAsText(s);
assertEquals(s, ee.getAsText());
assertTrue(ee.getValue() instanceof org.w3c.dom.Element);
}