public void UpdateCategory(Category category) { var data = downloadWebPage(getFullUrl("admin/categories/" + category.ID + ".xml"), HttpMethod.PUT, category.ToXElement().ToString()); var x = XDocument.Parse(data).Root; category.LoadXElement(x); }