AppendChildForLoad() private method

private AppendChildForLoad ( XmlNode newChild, XmlDocument doc ) : XmlNode
newChild XmlNode
doc XmlDocument
return XmlNode
コード例 #1
0
ファイル: xmlloader.cs プロジェクト: ArildF/masters
 //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;
     }
 }
コード例 #2
0
        private void LoadDocSequence(XmlDocument parentDoc)
        {
            XmlNode newChild = null;

            while ((newChild = this.LoadNode(true)) != null)
            {
                parentDoc.AppendChildForLoad(newChild, parentDoc);
                if (!this.reader.Read())
                {
                    return;
                }
            }
        }
コード例 #3
0
ファイル: XmlLoader.cs プロジェクト: rsumner31/corefx2
        //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;
                }
            }
        }
コード例 #4
0
 private void LoadDocSequence(XmlDocument parentDoc)
 {
     XmlNode newChild = null;
     while ((newChild = this.LoadNode(true)) != null)
     {
         parentDoc.AppendChildForLoad(newChild, parentDoc);
         if (!this.reader.Read())
         {
             return;
         }
     }
 }