示例#1
0
        public void ReadIncludeFile(String includeFile)
        {
            XmlReaderSettings settings = new XmlReaderSettings();
            settings.IgnoreComments = true;
            settings.IgnoreProcessingInstructions = true;
            settings.IgnoreWhitespace = true;
            XmlReader reader = XmlReader.Create(includeFile, settings);

            ModelReader modelReader = new TrimReader(/*_types*/);
            modelReader.RecursivelyReadBlock(reader, this, true);
        }
        public void ReadIncludeFile(String includeFile)
        {
            XmlReaderSettings settings = new XmlReaderSettings();

            settings.IgnoreComments = true;
            settings.IgnoreProcessingInstructions = true;
            settings.IgnoreWhitespace             = true;
            XmlReader reader = XmlReader.Create(includeFile, settings);

            ModelReader modelReader = new TrimReader(/*_types*/);

            modelReader.RecursivelyReadBlock(reader, this, true);
        }