internal static XmlDocument GetResultXml(OAuthDelicious oAuth, string apiRelativeUrl) { XmlDocument xmlDoc = null; try { xmlDoc = new System.Xml.XmlDocument(); xmlDoc.LoadXml(oAuth.APIWebRequest(OAuthDelicious.Method.GET.ToString(), apiRelativeUrl, null)); } catch (XmlException) { throw new Exceptions.DeliciousException ("The webserver did not return valid XML."); } return xmlDoc; }