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

»¹ÊÇÓйØC#¶ÁÈ¡XMLµÄÎÊÌâ

ÎÒÏÖÔÚÏëµÃµ½ÏÂÃæXMLÖÐ <span style="color:#FF0000">Óм¸¸öorganization½Úµã£¬¼¸¸öorganizations½Úµã£¬ÒÔ¼°Ã¿¸ö½Úµãϸ÷ÓжàÉÙ¸öITEM½Úµã</span>£¿

ѧϰÁ½ÌìÁË£¬ÎÒ²ÅÖ»ÄܶÁÈ¡ËùÓнڵãµÄtitleÊôÐÔ£¬Ã»Óа취·Ö±ðµÃµ½¸÷¸ö½ÚµãµÄ¸öÊý¡£Çë´ó¼Ò°ïÎÒ¿´¿´£¬Ð»Ð»ÁË£¡

XMLÎļþÈçÏ£º
XML code:

<?xml version="1.0" encoding="UTF-8"?>
<manifest >
<organizations>
<organization>
<title>CDMA Planning1</title>
<item isvisible="true">
<title>Description1</title>
</item>
<item isvisible="true">
<title>Propagation</title>
</item>
</organization>
<organization>
<title>CDMA Planning</title>
<item isvisible="true">
<title>Description</title>
</item>
</organization>
</organizations>
<resources>
<resource>
<file href="01_description1/01_description.html" />
<file href="01_description1/player/flashcommand.js" />
</resource>
</resources>
</manifest>



ÎÒÓõÄÊÇVS 2005 ,ʹÓÃC# 2.0
¶¥Ï£¬Ï£Íû¸ßÈËÖ¸ÌõÃ÷·£¡


ls µÄÃ²ËÆ¿ÉÒÔ »Ø¸´ÄÚÈ


Ïà¹ØÎÊ´ð£º

ÈçºÎÌá½»xmlÀàÐÍÊý¾Ý - .NET¼¼Êõ / ASP.NET

Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
  <a>aaa
  </a>
  <b>bbb
  </b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......

C#ºÍÊý¾Ý¿âSQL - MS-SQL Server / »ù´¡Àà

ÎÒÃÇC#×öÒ»¸ö´°Ìå ÍùÊý¾Ý¿âÀï²åÈëÊý¾Ý
  SqlConnection cn = new SqlConnection("Data Source=20090713-1752\\SQLEXPRESS;Initial Catalog=goods;Integrated Security=True");
  ......

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 ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......

±éÀúÒ»¸öxml²¢Êä³öÖ¸¶¨½ÚµãµÄÖµ - .NET¼¼Êõ / C#

ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
  <RequestType>DISCOVER_XML_ME ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎͼ¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ