j += nodeList.getLength();
Assert.assertEquals(j, i);
doc.save(ResourceUtilities.newTestOutputFile(SAVE_FILE_REPLACE));
//validate
TextDocument doc1 = (TextDocument) Document.loadDocument(ResourceUtilities.getAbsolutePath(SAVE_FILE_REPLACE));
OdfContentDom contentDom1 = doc1.getContentDom();
nodeList = contentDom1.getElementsByTagName(TextPageNumberElement.ELEMENT_NAME.getQName());
for(int k =0;k<nodeList.getLength();k++){
Node nv = nodeList.item(k);
NamedNodeMap nameMap = nv.getAttributes();