c#的我知道,可是vb.net是怎么表示的? Assembly code: Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("root/" & key) 'key节点 If node Is Nothing Then '不存在 End If
VB.NET code: Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("root/" & key) 'key节点 If node Is Nothing Then '不存在 End If
Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("//Root/A[@id=" & id & "]") If node IsNot Nothing Then End If 为了问问题, 先的赚赚
Private Sub Command1_Click() Dim MyString() As String Open "a.xml" For Binary As #1 ' 打开刚创建的文件。 ReDim MyString(LOF(1) - 1) Put #1, , MyRecord ' 读入所有字符到变量中 ......