Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÅжÏxmlµÄÒ»¸ö½ÚµãÊÇ·ñ´æÔÚ - .NET¼¼Êõ / VB.NET

ÎÒÏÖÔÚÒª¶ÁÒ»¸öxmlÎļþµÄÒ»¸ö½ÚµãÖµ£¬µ«ÓÐʱºòÕâ¸ö½Úµã¿ÉÄܲ»´æÔÚ£¬Õâ¸öʱºòÎÒҪн¨Õâ¸ö½Úµã²¢¸øËü¸³Öµ¡£
ËùÒÔÎÊһϠÈçºÎÅжÏxmlµÄ½ÚµãÊÇ´æÔÚ»¹ÊDz»´æÔÚ£¿
лл´ó¼Ò


²»»á¡£net£¬°ï¶¥

C# code:

System.Xml.XmlNode node = xmlDoc.SelectSingleNode("root/" + key); //key½Úµã
if (node == null){
//²»´æÔÚ
}



ÒýÓÃ

C# code

System.Xml.XmlNode node = xmlDoc.SelectSingleNode("root/" + key); //key½Úµã
if (node == null){
//²»´æÔÚ
}


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

ΪÁËÎÊÎÊÌ⣬
ÏȵÄ׬׬


Ïà¹ØÎÊ´ð£º

vbµÄÀàÖÐʹÓÃ×Ô¶¨ÒåÀàÐÍÊý¾ÝµÄÎÊÌâ - VB / »ù´¡Àà


ÎÒÔÚÀàÖÐÓÐÒ»¸öº¯Êý
Public Function DownloadAdditionalSite(SiteName As siteconfig, Directory As String, ymd As String) As Boolean
siteconfigÊÇÎÒ×Ô¶¨ÒåÀàÐ͵ÄÊý¾Ý£¬ÎªÊ²Ã´»áÌáʾ¡°Ö»ÓÐÔÚ¹«¹²¶ÔÏóÄ£¿éÖж ......

vb - VB / »ù´¡Àà

ÎÒÏë°ÑwordÁí´æΪxmlÖ®ºó£¬ÓÃvb¶ÁÈ¡Õâ¸öxmlµÄÄÚÈÝ£¬ÇëÎÊÈçºÎʵÏÖ£¿
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......

vb¶ÁÈ¡xml - VB / »ù´¡Àà

ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xm ......

vb²Ù×÷excel - VB / »ù´¡Àà

ÎÊÌ⣺
ÏÖÔÚAccessÊý¾Ý¿âÖÐÓÐÁ½ÕűíTableAºÍTableB
TableAÖÐÓмǼÈçÏÂ:
×Ö¶Î1(Name) ×Ö¶Î2(Num)
  A 3
  A 4
  B 6
  ... ......

VB µ÷ÓÃInet¿Ø¼þÏÂÔسö´í - VB / ÍøÂç±à³Ì

¸÷λ¸ßÊÖ£¬Ð¡µÜ×î½üÅöµ½Ò»¸öÎÊÌ⣺ԭÏÈдµÄ³ÌÐò´ó¸ÅµÄ˼·ÊÇ£ºÊ×ÏÈwebbrowser´ò¿ªÍøÖ·£¬ÍøÖ·ÏÔʾºó£¬µã»÷ÍøÖ·ÉϵÄijһ¸öÁ¬½Ó£¬µ±webbrowser¼ì²âµ½ÍøÖ·ÒѾ­Á¬½Óµ½ÏëÒªµÄµØַʱºò¾Í¿ªÊ¼ÏÂÔØÎļþ£¬µ±ÓÃIE6µÄʱºòÏÂÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ