function xmlSerialize(Writer $writer) {
foreach ($this->shares as $share) {
$writer->startElement('{' . self::NS_NEXTCLOUD . '}sharee');
- $writer->writeElement("id", $share->getSharedWith());
- $writer->writeElement("displayName", $share->getSharedWithDisplayName());
- $writer->writeElement('type', $share->getShareType());
+ $writer->writeElement('{' . self::NS_NEXTCLOUD . '}id', $share->getSharedWith());
+ $writer->writeElement('{' . self::NS_NEXTCLOUD . '}display-name', $share->getSharedWithDisplayName());
+ $writer->writeElement('{' . self::NS_NEXTCLOUD . '}type', $share->getShareType());
$writer->endElement();
}
}