c# ¶Áxml Êý×Ö±êÇ© - .NET¼¼Êõ / C#
Òì³£ÐÅÏ¢ÈçÏ£¬Çë½Ì¸÷λ¸ßÊÖ£º
Ãû³Æ²»ÄÜÒÔ¡°1¡±×Ö·û(Ê®Áù½øÖÆÖµ 0x31)¿ªÍ·¡£ ÐÐ 7£¬Î»Öà 8¡£
ÔÚ System.Xml.XmlTextReaderImpl.Throw(Exception e)
ÔÚ System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
ÔÚ System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
ÔÚ System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
ÔÚ System.Xml.XmlTextReaderImpl.ParseElement()
ÔÚ System.Xml.XmlTextReaderImpl.ParseElementContent()
ÔÚ System.Xml.XmlTextReaderImpl.Read()
ÔÚ System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
ÔÚ System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
ÔÚ System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
ÔÚ System.Xml.XmlDocument.Load(XmlReader reader)
ÔÚ System.Xml.XmlDocument.Load(String filename)
£Ø£Í£Ì¡¡ÎļþÈçÏÂ
XML code:
<?xml version="1.0"?>
<!--this XML is created from a tree-->
<!--By Eagle-->
<TreeExXMLCls>
<¹¤¿Ø»úÁбí>
<A>
<128.64.6.111 />
<9301 />
</A>
</¹¤¿Ø»úÁбí>
</TreeExXMLCls>
<¹¤¿Ø»úÁбí><
Ïà¹ØÎÊ´ð£º
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......