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 ΪÁËÎÊÎÊÌ⣬ ÏȵÄ׬׬