public static boolean createMainXml() throws Exception {
File xmlfile = null;
try {
xmlfile = new File("/Files/2c08acd6a61e472db47d8a1bb33c4776.txt");//具体文件路径
if (!xmlfile.exists()) {
Document doc = DocumentHelper.createDocument();
//增加根节点
Element fileRoot = doc.addElement("FileRoot");
//增加子节点
Element metadata = fileRoot.addElement("Metadata");
Element docBody = fileRoot.addElement("DocBody");
Element component = docBody.addElement("Component");
Element file=component.addElement("File");
Element FileLoc =file.addElement("FileLoc");