Devo leggere un file xml remoto e popolare una listview a molteplici colonne.
Codice PHP:
Private Sub ReadXML()
Const URLString As String = "http://127.0.0.1/project/out.xml"
Dim reader As XmlTextReader = New XmlTextReader(URLString)
Do While (reader.Read())
Select Case reader.NodeType
Case XmlNodeType.Element 'Display beginning of element.
'MsgBox("NomeValore:" + reader.Name)
Case XmlNodeType.Text 'Display the text in each element.
'MsgBox("Text:" + reader.Value)
'Qui va inserito il codice per popolare la Listview
Case XmlNodeType.EndElement 'Display end of element.
End Select
Loop
la mia listview è fatta così:
ID|Name|Cognome|Username|Password|Email|
E l'xml:
<users>
<id></id>
<name></name>
<cognome></cognome>
<username></username>
<password></password>
<email></email>
</users>
Rigrazio tutti coloro che mi daranno una mano!