mime !== null ? $property->mime : null ); break; default: return parent::serializeLiveProperty( $property, $parentElement ); } $propertyElement = $parentElement->appendChild( ezcWebdavServer::getInstance()->xmlTool->createDomElement( $parentElement->ownerDocument, $elementName, $property->namespace ) ); if ( $elementValue instanceof DOMDocument ) { $propertyElement->appendChild( $dom->importNode( $elementValue->documentElement, true ) ); } else if ( is_array( $elementValue ) ) { foreach( $elementValue as $subValue ) { $propertyElement->appendChild( $subValue ); } } else if ( is_scalar( $elementValue ) ) { $propertyElement->nodeValue = $elementValue; } return $propertyElement; } } ?>