Element root = doc.addElement("POCS");
//这个不起作用!
root.addAttribute("xmlns","http://test");
//这个才起作用!
Element root = doc.addElement("POCS", "http://test");
Element root = doc.addElement("POCS");
//这个不起作用!
root.addAttribute("xmlns","http://test");
//这个才起作用!
Element root = doc.addElement("POCS", "http://test");