Home > Articles > Web Services > XML

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Modifying Entries

Modifying or deleting an entry relies on a structure similar to the service array above, in this case iterating over the link elements returned with a particular entryType. These links contain the correct URLs to perform an update or delete on the specified entryType, as shown in Listing 7.

Listing 7 Editing entries.

foreach (linkType link in entry.links)
{
  if (link.srvType.Equals(serviceType.edit))
  {
    //To edit
    atom.EditBlogEntry(link.href, "Edited Title", "Edited Content", "Edited Category");
    //To delete
    atom.DeleteBlogEntry(link.href);
  }
}
  • + Share This
  • 🔖 Save To Your Account