try {
Document odfDocument = Document.loadDocument(ResourceUtilities.getAbsolutePath(SOURCE));
Assert.assertTrue(odfDocument.getPackage().contains("content.xml"));
String baseURI = odfDocument.getBaseURI();
Assert.assertEquals(ResourceUtilities.getURI(SOURCE).toString(), baseURI);
OdfFileDom odfContent = odfDocument.getContentDom();
String odf12 = OfficeVersionAttribute.Value._1_2.toString();
OfficeDocumentContentElement content = (OfficeDocumentContentElement) odfContent.getDocumentElement();
String version = content.getOfficeVersionAttribute();
Assert.assertFalse(version.equals(odf12));
NodeList lst = odfContent.getElementsByTagNameNS(OdfDocumentNamespace.TEXT.getUri(), "p");
Node node = lst.item(0);
String oldText = "Changed!!!";
node.setTextContent(oldText);
odfDocument.save(ResourceUtilities.newTestOutputFile(TARGET));
odfDocument = Document.loadDocument(ResourceUtilities.getAbsolutePath(TARGET));
odfContent = odfDocument.getContentDom();
// ToDo: Will be used for issue 60: Load & Save of previous ODF versions (ie. ODF 1.0, ODF 1.1)
//Assert.assertTrue(odfContent.getRootElement().getOfficeVersionAttribute().equals(odf12));
lst = odfContent.getElementsByTagNameNS(OdfDocumentNamespace.TEXT.getUri(), "p");
node = lst.item(0);
String newText = node.getTextContent();
Assert.assertTrue(newText.equals(oldText));
node = lst.item(1);