ÇóÖú... c#¶ÁдxmlÎÊÌâ - .NET¼¼Êõ / C#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<id="1">
<user="test1" pass="12345" />
</id>
<id="2">
<user="test2" pass="6789">
</id>
<id="3">
<user="test3" pass="6789">
</id>
</configuration>
ÔÚwinformÀïÒªÔõô¶Áȡÿ¸ö½ÚµãµÄÐÅÏ¢×îºÏÀí
°ÑxmlÎĵµÖÐÿ¸ö½ÚµãÖеÄÐÅÏ¢¶ÁÈ¡³öÀ´
ÒªÒ»¶ÎÒ»¶ÎµÄ¶Á ±ÈÈçÕâ´Î¶ÁÁËid="1" Ï´ÎÔÙ¶Áid="2"
È»ºó¿ÉÒÔÐÞ¸Ä
ÐÞ¸ÄÍêÁË¿ÉÒÔ±£´æ
×¢ÒâÊǶÁÈ¡ "" ÀïµÄÖµ°¡
×îºÃÄÜд¸öÍêÕûµÄ´úÂë¸øÎҲο¼²Î¿¼ лл¸÷λ´ó´óÁË
Õâ¸öÊÇÊôÐÔ¡£
×î¼òµ¥µÄÊÇÓà Linq To XML È¥¶ÁÈ¡¡£
C#²Ù×÷XMLµÄÍêÕûÀý×Ó——XmlDocumentƪ :
http://cache.baidu.com/c?m=9f65cb4a8c8507ed4fece7631045952458438014668cc7150884c013c5234c413037bee43a634a579392613156e91a07b4ed317336072bbc9ddccd179ded9d6270d63035004adb10558c4ef38d&p=93769a429cd911a05bead33e4454&user=baidu
selectsignlenode("/configuration@id"+񅧏)
»òÕß
load();
foreach£¨xmlnode xn in doc.element.childnodes£©
{
//ÕâÀïÖ»ÊÇÒ»¼¶×ӽڵ㠣¨id¼¶µÄ£©
}
node.GetAttribute("id")
¿´ÕâÀï XML³£ÓòÙ×÷£¬Ôöɾ¸Ä²é
Ï£Íû¶ÔÄ
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
¹¦ÄÜ˵Ã÷:Java servlet °ÑXMLÊý¾ÝѹËõºó·¢Ë͵½PBÓû§¶Ë,PBÊÕµ½Êý¾Ýºó½âѹ³öÀ´.
´«ÊäÒª¾¹ýBase64±àÂë.
ÎÊÌâÊÇ:ÄÜÊÕµ½Êý¾Ýµ«Êǽâѹ²»³öÀ´.ÏëÇë½Ì´ó¼Ò»òÕßÓÐʲôºÃµÄ°ì·¨?
PB¿ÉÒÔÓÃ"zlibwapi.DLL" ½âѹ
......
¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......
ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾÌá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......