Fix Bug TDI-27366 : remove GenerateDocumentHelper

https://jira.talendforge.org/browse/TDI-27366

git-svn-id: http://talendforge.org/svn/tos/trunk@110123 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
wwang
2013-10-29 03:26:29 +00:00
parent 59ca926dcb
commit a9f2935ce3
2 changed files with 14 additions and 34 deletions

View File

@@ -73,4 +73,18 @@ public class NestXMLTool {
}
}
}
//do some work after document has been generated
public static void generateOk(routines.system.Document doc,boolean removeEmptyElement) {
if(doc == null || doc.getDocument() == null) {
return;
}
replaceDefaultNameSpace(doc.getDocument().getRootElement(),null);
if(removeEmptyElement) {
removeEmptyElement(doc.getDocument().getRootElement());
}
}
}