Ejemplo n.º 1
0
        /// <summary>
        /// This method initializes the XmlReader member.
        /// </summary>
        /// <param name="httpClientUtil">A configured <see cref="HttpClientUtil"/> instance for performing web requests</param>
        private void createReader(HttpClientUtil httpClientUtil)
        {
            XmlReaderSettings xmlReaderSettings = new XmlReaderSettings();

            xmlReaderSettings.IgnoreComments = true;
            xmlReaderSettings.IgnoreProcessingInstructions = true;
            xmlReaderSettings.IgnoreWhitespace             = true;
            xmlReaderSettings.ProhibitDtd = true;
            _XmlReader = XmlReader.Create(httpClientUtil.GetDataStream(), xmlReaderSettings);
        }
Ejemplo n.º 2
0
 /// <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();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This method initializes the XmlReader member.
 /// </summary>
 /// <param name="httpClientUtil">A configured <see cref="HttpClientUtil"/> instance for performing web requests</param>
 private void createReader(HttpClientUtil httpClientUtil)
 {
     XmlReaderSettings xmlReaderSettings = new XmlReaderSettings();
     xmlReaderSettings.IgnoreComments = true;
     xmlReaderSettings.IgnoreProcessingInstructions = true;
     xmlReaderSettings.IgnoreWhitespace = true;
     //xmlReaderSettings.ProhibitDtd = true;
     xmlReaderSettings.DtdProcessing = DtdProcessing.Prohibit;
     _XmlReader = XmlReader.Create(httpClientUtil.GetDataStream(), xmlReaderSettings);
 }
Ejemplo n.º 4
0
 /// <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();
     }
 }