//The function will start loading the document from where current XmlReader is pointing at. private void LoadDocSequence( XmlDocument parentDoc ) { Debug.Assert( this.reader != null ); Debug.Assert( parentDoc != null ); XmlNode node = null; while ( ( node = LoadCurrentNode() ) != null ) { parentDoc.AppendChildForLoad( node, parentDoc ); if ( !this.reader.Read() ) return; } }
private void LoadDocSequence(XmlDocument parentDoc) { XmlNode newChild = null; while ((newChild = this.LoadNode(true)) != null) { parentDoc.AppendChildForLoad(newChild, parentDoc); if (!this.reader.Read()) { return; } } }
//The function will start loading the document from where current XmlReader is pointing at. private void LoadDocSequence(XmlDocument parentDoc) { Debug.Assert(_reader != null); Debug.Assert(parentDoc != null); XmlNode node = null; while ((node = LoadNode(true)) != null) { parentDoc.AppendChildForLoad(node, parentDoc); if (!_reader.Read()) { return; } } }