printer.writeElement("D", null, positive,
XMLPrinter.OPENING);
Enumeration privilegeList = ace.enumeratePrivileges();
while (privilegeList.hasMoreElements()) {
Privilege privilege = (Privilege) privilegeList.nextElement();
printer.writeElement("D", null, "privilege",
XMLPrinter.OPENING);
String nsURI = privilege.getNamespace();
if ("DAV:".equals(nsURI)) {
printer.writeElement("D", null, privilege.getName(),
XMLPrinter.NO_CONTENT);
} else {
printer.writeElement("Z", nsURI, privilege.getName(),
XMLPrinter.NO_CONTENT);
}
printer.writeElement("D", null, "privilege",
XMLPrinter.CLOSING);
}