if (n.getNodeType() == n.ELEMENT_NODE) {
Element el = (Element)n;
setDeadProperty(el);
okdp.addNodeNS(document.importNode(el, false));
} else {
DAVPropStat dps = DAVFactory.createPropStatNS(
getStatusLine(HTTP.CONFLICT),
document.importNode(n, false),
document);
String msg = "Invalid XML : "+name;
throw new DAVPropertyException(msg, dps);
}
} catch (DOMException ex) {
DAVPropStat dps = DAVFactory.createPropStatNS(
getStatusLine(HTTP.CONFLICT),
document.importNode(n, false),
document);
throw new DAVPropertyException(ex.getMessage(), dps);
}