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

ÓÉxmlÉú³Éxsd¼°ÊµÌåÀà

ʹÓÃVS2005¹¤¾ßXSD.exe(SDK\v2.0\Bin\xsd.exe)×Ô¶¯Éú³ÉʵÌåÀࣺ
xsd /c /namespace:myCompany /language:CS temp1.xsd
Ò²¿ÉÒÔÉú³ÉDataSetÀàÐ͵ÄÀà:
xsd /dataset /language:CS temp1.xsd
 ( ÀàÎļþºÍXSDÖ®¼ä¿ÉÒÔÏ໥ת»»£¬Ò²¾ÍÊÇ˵£¬ÄãÒ²¿ÉÒÔÏÈÉú³ÉÀ࣬Ȼºó×Ô¶¯Éú³ÉXSD)
    ×Ô¶¯¶ÁÈ¡XMLÊý¾Ýµ½ÊµÌåÀࣺ
    
XmlSerializer xs = new XmlSerializer(typeof(myClassType));
using (FileStream fs = new FileStream(XmlFilePath, FileMode.Open))
{
    return (myClassType)xs.Deserialize(fs);
}


Ïà¹ØÎĵµ£º

XML´´½¨¡¢¶Á¡¢Ð´²Ù×÷

Create:
int nFQ;
   XmlDocument doc = new XmlDocument();
   XmlAttribute
newAtt;
   //¶¨ÒåXMLÎĵµÍ·Îļþ
   XmlDeclaration dec =
doc.CreateXmlDeclaration("1.0",null,null);
   doc.AppendChild(dec);
 &n ......

.NetµÄ¾«Ëè——XMLºÍSOAP

Internet µÄÓ¦ÓÃÕýÔÚ²»¶ÏµØÀ©´ó£¬µ«ÎÒÃÇµÄ Internet ±à³Ì·½Ê½»¹´¦ÓÚʯÆ÷ʱ´ú¡£Internet Óû§¾ÍÏñÀÏʽÖ÷»úµÄ·ÖʱÖÕ¶ËÉϵÄÓû§Ò»Ñù£¬ËûÃÇ´ÓÒ»¸öÊܱ£»¤µÄ×ÊÔ´ÇëÇóÐÅÏ¢£¬È»ºóµÈ´ý»ØÓ¦¡£Äã´ÓÕýÔÚä¯ÀÀµÄ Internet Õ¾µãÉϽÓÊÕµÄÐÅÏ¢ÓÉËüÏ£ÍûÌṩ¸øÄãµÄ¡¢»ùÓÚ HTML µÄÐÅÏ¢×é³ÉµÄ¡£
¡¡¡¡µ«ÊÇ£¬Í¬Ô¶³Ì Web Õ¾µã½øÐн»»¥Ê½²Ù×÷ÊDz»ÊÇ ......

ʹÓöàÏ̼߳ÓÔضà¸öXmlÎļþµ½TreeView¿Ø¼þ

·­Ò룺Çï·ã
Ô­´úÂ룺
LoadingXmlInTvMTCode.zip

 
ÔںܶàÇé¿öϳÌÐòÔ±ÐèÒª²ÉÓöàÏß³ÌÀ´¿ª·¢Ó¦ÓóÌÐò£¬Óû§¿ÉÒÔÔÚǰ̨²Ù×÷Êý¾Ý»òÆäËû¹¤×÷£¬ÔÚºǫ́³ÌÐòÕýÔÚ¼ÓÔغܴóµÄһЩÎļþ£¬¶øÕâÒ»¹ý³Ì²»»áÓ°Ï쵽ǰ̨µÄÓû§¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÀ´½²ÊöÒ»ÏÂÔõÑùͨ¹ý¶à¸öÏß³ÌÀ´¼ÓÔضà¸öÎļþ¡£
 
ÔÚÕâ¸öÀý×ÓÖÐÎÒÃǽ«À´Ñо¿Õ ......

js ¶ÁÈ¡xmlÎĵµ

<html>
<head>
<title>XML Demo</title>
</head>
<body>
<script language="javascript">
function window.onload()
{
var domXML=new ActiveXObject("Microsoft.xmldom");
domXML.load("aTest.xml");
var myRoot=domXML.documentElement;
var myNodes2=myRoot.child ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ