@Test
public void testSerializeToXML() throws ParserConfigurationException, TransformerException, IOException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
DOMImplementation impl = builder.getDOMImplementation();
Document doc = impl.createDocument(null, null, null);
Node n1 = doc.createElement("DIV");
Node n2 = doc.createElement("SPAN");
Node n3 = doc.createElement("P");
n1.setTextContent("Content 1");
n2.setTextContent("Content 2");