Originariamente inviato da elisa_rm74
non posso usare un placeholder
Che cosè ? VVoVe:


Puoi sempre utilizzare la variabile I e ne metti un'altra.



codice:
    Dim NXml as XmlTextReader
    Dim I As Integer
        Nxml = new XmlTextReader (Server.MapPath("prova.xml"))
    
        While NXml.Read()
    
            If NXml.NodeType = XmlNodeType.Element Then
    
                If NXml.LocalName = "row" Then
    
                I = I + 1
    
                    While NXml.MoveToNextAttribute()
                    
                    Dim C As Integer
                    
                        C = C + 1
    
                    TNews.Rows(I).Cells(C).InnerHTML = NXml.Value 
    
                    End While
    
                End If
    
                If I = 3 Then
    
                    NXml.Close()
                    Exit While
    
                End If
    
            End If
    
        End While

Spero sia giusto, + o - è cosi !