Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 / »ù´¡Àà

ÏÖÔÚÎÒÏë¸ù¾ÝtreeviewÉÏÿ¸ö½ÚµãµÄȨÏÞ£¬Ã»ÓÐȨÏ޵Ľڵ㲻Äܱ»Ñ¡ÖУ¬¶øÇҳɻÒÉ«£¬ÔõôʵÏÖ£¬ÔÚÏߵȡ£¡£¡£
Õâ¸ö£¿¡£¡£¡£
òËÆû·¨¡£
ÊÔÊÔÄܲ»ÄܸÄijЩnodeµÄÑÕÉ«£¬¼Ç¼ÏÂÉϴεÄnodeclickÀïµÄnode¡£
Ï´εã»÷µÄÈç¹ ......

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¶ÁÈ¡ÓÃwordת»»³ÉµÄxmlÀïµÄÊý¾Ý - VB / »ù´¡Àà

Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
  Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......

ÇóÖú£ºC´úÂë¸Äд³ÉVB´úÂë - VB / »ù´¡Àà

Ë­ÄÜ°ïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ