예제 #1
0
        /// <summary>
        /// Parses the string and returns the result.
        /// </summary>
        public IXmlDocument Parse(String source)
        {
            var document = CreateDocument(source);
            var parser   = new XmlDomBuilder(document);

            parser.Parse(_options);
            return(document);
        }
예제 #2
0
        /// <summary>
        /// Parses the stream and returns the result.
        /// </summary>
        public IXmlDocument Parse(Stream source)
        {
            var document = CreateDocument(source);

            using (var parser = new XmlDomBuilder(document))
            {
                parser.Parse(_options);
            }
            return(document);
        }
예제 #3
0
 /// <summary>
 /// Parses the string and returns the result.
 /// </summary>
 public IXmlDocument Parse(String source)
 {
     var document = CreateDocument(source);
     var parser = new XmlDomBuilder(document);
     parser.Parse(_options);
     return document;
 }