XML×Ö·û´®±àÂëµÄÎÊÌâ
Ô´Â룺
C# code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(action);
request.Method = "POST";
request.UserAgent = "Jakarta Commons-HttpClient/2.0rc3";
request.ContentLength = data.Length;
request.ContentType = "application/x-www-form-urlencoded";
Stream postStream = request.GetRequestStream();
postStream.Write(data, 0, data.Length);
postStream.Close();
ÎÒÏëÔÚPOST XMLÊý¾Ýµ½ÍøÕ¾ÉϵÄʱºò£¬½«Êý¾Ý½øÐÐapplication/x-www-form-urlencoded±àÂëÔÙÉÏ´«£¬µ«ÊÇÈçÉÏ´¦Àíºó£¬ÉÏ´«µÄÊý¾Ý²¢Î´½øÐбàÂ룬±ÈÈ罫 < />ת»»Îª%3C %3EÖ®ÀàµÄ
Çë´óϺÃÇ¿´¿´Ôõô²ÅÄÜ´ïµ½Õâ¸öЧ¹û
ÐÂ×¢²áÓû§ Ï£Íû´ó¼Ò¶à¶à¹Ø×¢
Ϊ´ó¼Ò½éÉܸöÈí¼þÍø Èí¼þ°Í°ÍÍø ÍøÖ·£ºwww.rj88.net
ÎÒÕâ¸ö²»ÊÇÎÊÌâô£¿
ÔõôûÈËÀíÄØ£¿
ÐÂ×¢²áÓû§ Ï£Íû´ó¼Ò¶à¶à¹Ø×¢
Ϊ´ó¼Ò½éÉܸöÈí¼þÍø Èí¼þ°Í°ÍÍø ÍøÖ·£ºwww.rj88.net
ÔÙ¶¥¸ö£¡
Ïà¹ØÎÊ´ð£º
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
ÇóÖú¸÷λ´óϺ£¬Ñ§Éú³É¼¨µ¥XML SchemaµÄÉè¼Æ,XMLÎĵµµÄÉè¼Æ£¬°üº¬µÄÖ÷ÒªÐÅÏ¢£ºÑ§ºÅ¡¢Ñ§ÉúÐÕÃû¡¢Ïµ²¿¡¢°à¼¶¡¢¿¼ÊÔÈÕÆÚ¡¢ÈονÌʦ¡¢Ñ§·Ö¡¢Ñ§Ê±¡¢ÐÞϰÀà±ð¡¢Java³ÌÐòÉè¼Æ³É¼¨,ÍøÂç»ù´¡ÖªÊ¶³É¼¨¡¢ÍøÒ³ÖÆ×÷³É¼¨¡¢Èí¼þ¹¤³Ì³ ......
ºÃ ÎÒÏëѧϰXMLºÃÊ飬ÇëÎÊÓÐʲôÊ飬¿ÉÒÔÉîÈëµÄѧϰÏÂµÄ Ð»Ð»
ÎÞ·Ï»°XML ̨ÍåÁ½Ö»ÀÏ»¢
XMLÈëÞµä
ÓÑÇé °ï¶¥¡£
ÎÞ·Ï»°XML ̨ÍåÁ½Ö»ÀÏ»¢ÖªÊ¶µã±È½ÏÉÙ
XML´ÓÈëÃŵ½¾«Í¨
......
ÈçºÎ¶ÔxmlÄÚÈÝÊý¾Ý½øÐбȽÏ
ÀýÈ磺
<?xml version='1.0' encoding='utf-8'?>
<TestLIST>
<PID>40</PID>
<TestName>ÉîÛÚÊÐ</TestName>
......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>Õâ¸öÊǺº×Ö</msg>
<serialno>123</serialno>
</root>
ÈçºÎÓÃASP¶ÁÈ¡ statusÖµ ......