Status status = Status.parse(statusLine);
response = new MultiStatusResponse(href, status, responseDescription);
} else {
response = new MultiStatusResponse(href, responseDescription, TYPE_PROPSTAT);
// read propstat elements
ElementIterator it = DomUtil.getChildren(responseElement, XML_PROPSTAT, NAMESPACE);
while (it.hasNext()) {
Element propstat = it.nextElement();
String propstatus = DomUtil.getChildText(propstat, XML_STATUS, NAMESPACE);
Element prop = DomUtil.getChildElement(propstat, XML_PROP, NAMESPACE);
if (propstatus != null && prop != null) {
int statusCode = Status.parse(propstatus).getStatusCode();
ElementIterator propIt = DomUtil.getChildren(prop);
while (propIt.hasNext()) {
Element el = propIt.nextElement();
// current elem is now either a dav property xml representation
// or the xml representation of a davpropertyname
if (DomUtil.hasContent(el)) {
// property
DavProperty property = DefaultDavProperty.createFromXml(el);