Enumeration toSetList = toSet.elements();
printer.writeElement("D", null, "prop", XMLPrinter.OPENING);
while (toSetList.hasMoreElements()) {
Property current = (Property) toSetList.nextElement();
if ("DAV:".equals(current.namespaceInfo)) {
printer.writeProperty("D", null, current.name, current.value);
}
else {
printer.writeProperty(current.namespace, current.namespaceInfo,
current.name, current.value);
}