关于DOM4J生成XML的根节点带上xmlns的问题
Element root = doc.addElement("POCS");//这个不起作用!root.addAttribute("xmlns","http://test");//这个才起作用!Element root = doc.addElement("POCS", "http://test"); 发布时间: 2012-11-13 10:00:51 作者: rapoo
关于DOM4J生成XML的根节点带上xmlns的问题
Element root = doc.addElement("POCS");//这个不起作用!root.addAttribute("xmlns","http://test");//这个才起作用!Element root = doc.addElement("POCS", "http://test");