/// <summary> /// This method closes the XmlReader member and the used <see cref="HttpClientUtil"/> instance. /// </summary> public void Dispose() { if (_XmlReader != null) { _XmlReader.Close(); } if (_HttpClientUtil != null) { _HttpClientUtil.Close(); } }
/// <summary> /// Sets a new XML document. /// </summary> /// <param name="httpClientUtil">A configured <see cref="HttpClientUtil"/> instance for performing web requests</param> public void SetDocumentToParse(HttpClientUtil httpClientUtil) { try { initializeXPathObjects(httpClientUtil.GetDataStream()); } finally { httpClientUtil.Close(); } }