Load() private method

private Load ( XmlDocument doc, XmlReader reader, bool preserveWhitespace ) : void
doc XmlDocument
reader XmlReader
preserveWhitespace bool
return void
Esempio n. 1
0
        // Loads the XML document from the specified XmlReader.
        public virtual void Load(XmlReader reader)
        {
            try
            {
                IsLoading           = true;
                actualLoadingStatus = true;
                RemoveAll();
                fEntRefNodesPresent = false;
                fCDataNodesPresent  = false;

                XmlLoader loader = new XmlLoader();
                loader.Load(this, reader, preserveWhitespace);
            }
            finally
            {
                IsLoading           = false;
                actualLoadingStatus = false;
            }
        }
Esempio n. 2
0
        // Loads the XML document from the specified XmlReader.
        public virtual void Load(XmlReader reader)
        {
            try
            {
                IsLoading = true;
                _actualLoadingStatus = true;
                RemoveAll();
                fEntRefNodesPresent = false;
                fCDataNodesPresent = false;

                XmlLoader loader = new XmlLoader();
                loader.Load(this, reader, _preserveWhitespace);
            }
            finally
            {
                IsLoading = false;
                _actualLoadingStatus = false;
            }
        }
        // Loads the XML document from the specified XmlReader.
        public virtual void Load( XmlReader reader ) {
            try {
                IsLoading = true;
                actualLoadingStatus = true;
                RemoveAll();
                fEntRefNodesPresent = false;
                fCDataNodesPresent  = false;
                reportValidity = true;

                XmlLoader loader = new XmlLoader();
                loader.Load( this, reader, preserveWhitespace );
            }
            finally {
                IsLoading = false;
                actualLoadingStatus = false;

                // Ensure the bit is still on after loading a dtd 
                reportValidity = true;
            }
        }