OdfTextParagraph.ELEMENT_NAME.getUri(),
OdfTextParagraph.ELEMENT_NAME.getLocalName());
Assert.assertTrue(lst.getLength() > 0);
OdfTextParagraph p0 = (OdfTextParagraph) lst.item(lst.getLength() - 1);
TextListItemElement listItem = contentDom.newOdfElement(TextListItemElement.class);
//create children elements
TextHElement heading = listItem.newTextHElement(1);
TextListElement list = listItem.newTextListElement();
TextPElement paragraph = listItem.newTextPElement();
TextSoftPageBreakElement softPageBreak = listItem.newTextSoftPageBreakElement();
p0.getParentNode().insertBefore(listItem, p0);
XPath xpath = contentDom.getXPath();
TextListItemElement listItemTest = (TextListItemElement) xpath.evaluate("//text:list-item[last()]", contentDom, XPathConstants.NODE);
Assert.assertNotNull(listItemTest.getChildNodes());
Assert.assertTrue(listItemTest.getChildNodes().item(0) instanceof OdfTextHeading);
Assert.assertEquals(heading, listItemTest.getChildNodes().item(0));
Assert.assertEquals(listItemTest.getChildNodes().item(0).getNodeName(), "text:h");
Assert.assertTrue(listItemTest.getChildNodes().item(1) instanceof OdfTextList);
Assert.assertEquals(list, listItemTest.getChildNodes().item(1));
Assert.assertEquals(listItemTest.getChildNodes().item(1).getNodeName(), "text:list");
Assert.assertTrue(listItemTest.getChildNodes().item(2) instanceof OdfTextParagraph);
Assert.assertEquals(paragraph, listItemTest.getChildNodes().item(2));
Assert.assertEquals(listItemTest.getChildNodes().item(2).getNodeName(), "text:p");
Assert.assertTrue(listItemTest.getChildNodes().item(3) instanceof TextSoftPageBreakElement);
Assert.assertEquals(softPageBreak, listItemTest.getChildNodes().item(3));
Assert.assertEquals(listItemTest.getChildNodes().item(3).getNodeName(), "text:soft-page-break");
contentDom.getDocument().save(ResourceUtilities.newTestOutputFile("CreatChildrenForTextTable.odt"));
} catch (Exception e) {