public XmlNodeReader(XmlNode node)
 {
     if (node == null)
     {
         throw new ArgumentNullException("node");
     }
     this.readerNav          = new XmlNodeReaderNavigator(node);
     this.curDepth           = 0;
     this.readState          = System.Xml.ReadState.Initial;
     this.fEOF               = false;
     this.nodeType           = XmlNodeType.None;
     this.bResolveEntity     = false;
     this.bStartFromDocument = false;
 }
        private void Init( XmlNode node ) {
            readerNav = new XmlNodeReaderNavigator( node );
            this.curDepth = 0;

            readState = ReadState.Initial;
            fEOF = false;
            nodeType = XmlNodeType.None;
            bResolveEntity = false;
            bStartFromDocument = false;
        }
Пример #3
0
        // Creates an instance of the XmlNodeReader class using the specified XmlNode.
        public XmlNodeReader ( XmlNode node ) {
            if (node == null) {
                throw new ArgumentNullException("node");
            }
            readerNav = new XmlNodeReaderNavigator( node );
            this.curDepth = 0;

            readState = ReadState.Initial;
            fEOF = false;
            nodeType = XmlNodeType.None;
            bResolveEntity = false;
            bStartFromDocument = false;
        }