Document auth = DocumentFactory.getInstance().createDocument();
Element users = auth.addElement("users");
users.addAttribute("allowanonymous", "true");
Element designer = users.addElement("user");
designer.addAttribute("name", "designer");
designer.addAttribute("password", "wga");
designer.addAttribute("mail", "designer@example.com");
designer.addAttribute("aliases", "");
Element managers = users.addElement("group");
managers.addAttribute("name", "managers");
managers.addAttribute("members", "designer");