Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#²Ù×÷xml

ÒýÓÃÃüÃû¿Õ¼ä£ºusing System.Xml 
1.¼ì²éËùÒª²Ù×÷µÄxmlÎļþÊÇ·ñ´æÔÚ£º
   System.IO.File.Exists(Îļþ·¾¶¼°Ãû³Æ);
2.µÃµ½xmlÎļþ£º
£¨1£©ÔÚasp.netÖпÉÒÔÕâÑùµÃµ½:
XmlDocument xmlDoc = new XmlDocument();
//µ¼ÈëxmlÎĵµ
xmlDoc.Load( Server.MapPath("xmlTesting.xml"));
//µ¼Èë×Ö·û´®
//xmlDoc.LoadXml("<bookStore> <book id="01" price="3.5Ôª"> ¶ÁÕß</book></bookStore>");
×¢£ºServer.MapPath("xmlTesting.xml")´ËʱµÄxmlTesting.xmlÎļþ±ØÐëÊÇÔÚµ±Ç°µÄ½â¾ö·½°¸ÀͬÑù¿ÉÒÔд³ÉÍêÕûµÄÎïÀí·¾¶xmlDoc.Load (@"E:"Èí¼þѧϰ"²âÊÔ"myNoteWeb"xmlTesting.xml")
£¨2£©ÔÚwindFormÖÐ Ö±½ÓÓÃÎïÀí·¾¶µÃµ½ËùÒª²Ù×÷µÄxmlÎļþ¾ßÌåʵÏÖ·½·¨Í¬ÉÏ
3.´´½¨xmlÎļþ£º
 XmlDocument xmlDoc = new XmlDocument(); //´´½¨xmlÎĵµ(ʵÀý»¯Ò»¸öxml)
XmlNode root = xmlDoc.CreateElement("bookStore");//´´½¨¸ù½Úµã
//´´½¨µÚ1¸ö×Ó½áµã£º
XmlNode bookNode = xmlDoc.CreateElement("book");
bookNode.InnerText = "¶ÁÕß";
//Ϊ´Ë½ÚµãÌí¼ÓÊôÐÔ
 ·¨1£º
 bookPublishNode.SetAttribute("id", "01")
 root.AppendChild(bookNode);
·¨2£º
 XmlAttribute xmlattribute = tempXmlDoc.CreateAttribute("price");
 xmlattribute.Value = "3.5Ôª";
 tempRoot .Attributes .Append (xmlattribute )
 //´´½¨µÚ2¸ö¸ù½ÚµãµÄ×Ó½áµã£º
 XmlNode tempBookNode = xmlDoc.CreateElement("tempbook ");
 tempBookNode.InnerText ="ÎÄÕª";
 root.AppendChild(tempBookNode);


Ïà¹ØÎĵµ£º

c#º¯ÊýͼÏñ²é¿´Æ÷ ¿ÉÒԲ鿴»ý·Ö¡¢µ¼Êý

http://download.csdn.net/source/1935080
ÕâÓ¦¸ÃËãÊÇÎҵĵÚÒ»¸ö³ÌÐò°É ºÇºÇ
×îÂé·³µÄ¼ÇµÃÊÇ×ø±êÍøµÄ¼ÆË㺯ÊýÁË
ÒÔºóд³ÌÐòÒª¼ÇµÃ¶àÓÃ×¢ÊÍ£¬Ìá¸ß¿É¶ÁÐÔ
Ë㺯Êý»ý·ÖµÄËã·¨ ÊÇÓÃÔÚX=0µÄʱºò Y=0 ÍÆµ¼ÆäËûµÄÖµ
¶ÔÓÐЩº¯ÊýYÎÞ·¨»ý·ÖΪ0 µÄ»°£¬¿ÉÒÔÓûý·Ö¶à³öÀ´µÄÁ½¸ö ÍÏÀ­ÌõÍÏÀ­  £¬Ò²ÐíÄܳöÀ´  -_-||
BUG ¶àÊ ......

C# ¼ÓÃÜ£­¼ÓÃܺóΪºÎÓÐÁ½ÖÖ½á¹ûµÄ×Ö·û´®£¿

ÎÊ£ºC# ¼ÓÃܺóΪºÎÓÐÁ½ÖÖ½á¹ûµÄ×Ö·û´®£¿
±ÈÈç cftea µÄ MD5 ¼ÓÃܺó£º
ÓеÄÈ˵Ľá¹ûÊÇ£ºc2e1861ca90e67ce1f9a62f9c27d8bdc
ÓеÄÈ˵Ľá¹ûÊÇ£ºwuGGHKkOZ84fmmL5wn2L3A
´ð£ºÕâÊǶÔ×Ö½ÚµÄÁ½ÖÖ²»Í¬±íʾ½á¹û¡£
µÚÒ»ÖÖÊÇÓÃÊ®Áù½øÖƱíʾµÄ£¨FormsAuthentication.HashPasswordForStoringInConfigFile ¾ÍÊÇÕâÖÖ£¬Ö»ÊÇÊÇ´óдµÄ£©£¬ ......

C#¿ª·¢XML WebService½Ó¿Ú(SOAP)

Ô­ÎÄÁ´½Ó£ºhttp://www.cnblogs.com/ding0910/archive/2007/07/12/815407.html
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using BX.Interface; ......

c# ÑéÖ¤Âë×é¼þ ¿Évb£¬asp£¬netµ÷ÓÃ

      ½ñÌ칫˾ҪÇóÓÃC#д¸öÑéÖ¤Âë×é¼þ£¬ÈÃasp¿ÉÒÔµ÷Óã¬ÔÚÍøÉÏÕÒÁËÒ»¶Ñ×ÊÁÏ£¬ÖÕÓÚ¸øÎÒ¸ø¸ã³öÀ´ÁË£¬ÒòΪ±¾È˵ÚÒ»´Îд×é¼þ£¬Ò²ÊǵÚÒ»´Î·¢±íÎÄÕ£¬ËùÓпÉÄÜ˵µÄ²»ÊǺܺ㬴ó¼ÒÇë¼ûÁ¡£
      csdnÉÏÓÐÕâôƪÎÄÕ£¬Ïëѧϰд×é¼þµÄ¿ÉÒÔÈ¥¿´¿´£ºhttp://blog.csdn.net/KimmKi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ