C# ²Ù×÷xml - .NET¼¼Êõ / C#
ÎÒÏÖÔÚ»ñÈ¡µ½Ò»¸ö×Ö·û´®str
ÊǸöxml¸ñʽ
XML code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<LogoutResponse xmlns="http://mediax.huawei.com/webservice/types">
<code xsi:type="xsd:int" xmlns="">200</code>
<description xmlns="">Success</description>
</LogoutResponse>
</soapenv:Body>
</soapenv:Envelope>
ÈçºÎ»ñÈ¡ÀïÃæµÄ 200 ºÍ Success
²»ÓÃ×Ö·û´®½ØÈ¡
Ò²²»Òª½«´Ë×Ö·û´®Ð´ÈëÒ»¸öxmlÎļþ±£´æµ½±¾µØÔÙ¶ÁÈ¡
ÄÜ·ñÖ±½Ó½«´Ë×Ö·û´®Ð´ÈëÒ»¸öxmlÎļþ±£´æµ½ÄÚ´æÖнøÐжÁÈ¡£¬¶ÁÈ¡ÍêºóÊÍ·ÅÄÚ´æ
ÄãÕâ¸öÊǵ÷ÓÃwebservice°É ·µ»ØµÄÓ¦¸ÃÊÇÒ»¸öÀà Ö±½ÓÓþÍÐÐÁË
¶Ô Êǵ÷ÓõÄwebservice
·µ»ØµÄÒ»¸öÀ࣬ÎÒÖ»ÄÜÖ±½Óµ÷ÓÃÀïÃæµÄÊôÐÔstr
Ôõô»ñÈ¡ÀïÃæµÄ 200 ºÍ Success °¡
XmlDocument sourceDoc = new XmlDocument();
string path = Server.MapPath("~/ÎļþµÄ·¾¶");
sourceDoc.Load(path);
sourceDoc.ChildNodes[0].ChildNodes[0].ChildNodes[0].ChildNodes[0].InnerText
C# code:
Ïà¹ØÎÊ´ð£º
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
¹¦ÄÜ˵Ã÷:Java servlet °ÑXMLÊý¾ÝѹËõºó·¢Ë͵½PBÓû§¶Ë,PBÊÕµ½Êý¾Ýºó½âѹ³öÀ´.
´«ÊäÒª¾¹ýBase64±àÂë.
ÎÊÌâÊÇ:ÄÜÊÕµ½Êý¾Ýµ«Êǽâѹ²»³öÀ´.ÏëÇë½Ì´ó¼Ò»òÕßÓÐʲôºÃµÄ°ì·¨?
PB¿ÉÒÔÓÃ"zlibwapi.DLL" ½âѹ
......