C# ¶ÁÈ¡xmlÎļþÎÊÌâ ÔÚÏßµÈ - .NET¼¼Êõ / C#
<?xml version="1.0" encoding="utf-8" ?>
<Menu>
<Navigation text="Îļþ">
<Child text="н¨">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>ÍøÕ¾</Grandson>
<Grandson text="Îļþ">
<Last>Îļþ1</Last>
<Last>Îļþ2</Last>
<Last>Îļþ3</Last>
</Grandson>
</Child>
<Child text="´ò¿ª">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>Îļþ</Grandson>
</Child>
<Child text="Ìí¼Ó">
<Grandson>н¨ÏîÄ¿</Grandson>
<Grandson>н¨ÍøÕ¾</Grandson>
</Child>
</Navigation>
<Navigation text="±à¼">
<Child>¼ôÇÐ</Child>
<Child>¸´ÖÆ</Child>
<Child>Õ³Ìù</Child>
</Navigation>
<Navigation>ÊÓͼ</Navigation>
<Navigation>ÍøÕ¾</Navigation>
</Menu>
ÕâÊÇÎÒµÄxmlÎļþ£¬ÎÒÏë×ö³É¶à¼¶µ¼º½²Ëµ¥£¬ÎÒÏëÏÈͨ¹ý³ÌÐòÕÒµ½µÚÒ»²ã²Ëµ¥£¬ÔÙÑ»·ÕÒµ½ÊÇ·ñÓÐ×Ӳ˵¥£¬±¾È˶Ôxml²»ÊǺÜÁ˽⣬´ó¼Ò°ï°ïÎÒ°É£¬Ð»Ð»£¬ÔÚÏߵȣ¡£¡£¡
C# code:
XmlDocument xml = new XmlDocument();
xml.Load("XmlÎļþµØÖ·");
XmlN
Ïà¹ØÎÊ´ð£º
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎͼ¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ÏÖÓÐparadoxÊý¾Ý¿âʹÓÃBDEÇý¶¯£¬Äâ¸ÄΪC/S°æ£¬Ôö¼ÓÍøÂç¶ÁÈ¡Êý¾Ý¹¦ÄÜ¡£ÇëÄÄλ´óÏÀ£¬ÌṩԴÂë¡£
˵¾ä²»¿ÍÆøµÄ»°£¬ÓÃparadox×öC/SÊÇ×ÔѰËÀ·¡£
»»Ò»¸öÍøÂçÊý¾Ý¿â
ÒòΪ²»Ï붯´óÊÖÊõ£¬½öÄܹ²Ïí¼¸¸öÎļþ¼´¿É¡£
Da ......