public void AddCollection(Collection collection) { var data = downloadWebPage(getFullUrl("admin/collections.xml"), HttpMethod.POST, collection.ToXElement().ToString()); var x = XDocument.Parse(data).Root; collection.LoadXElement(x); }