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

VS ¡°XML Îĵµ¡± ˵Ã÷

VS “XML Îĵµ” ˵Ã÷
1¡¢ÈçºÎÉú³É
£¨1£©¡¢ÔÚ Visual Studio ÖÐÉú³É“XML Îĵµ”ʾÀý
ÔÚ“½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷”ÖÐÓÒ»÷¸ÃÏîÄ¿£¬ÔÙµ¥»÷“ÊôÐÔ”¡£
´ò¿ª“ÅäÖÃÊôÐÔ”Îļþ¼Ð£¬È»ºóµ¥»÷“Éú³É”¡£
½«“XML ÎĵµÎļþ”ÊôÐÔÉèÖÃΪ XMLsample.xml¡£
ÔÚ“Éú³É”²Ëµ¥Éϵ¥»÷“Éú³É”¡£
XML Êä³öÎļþ½«³öÏÖÔÚµ÷ÊÔĿ¼ÖС£
£¨2£©¡¢´ÓÃüÁîÌáʾ·ûÉú³É“XML Îĵµ”ʾÀý
ÈôÒªÉú³ÉʾÀý XML Îĵµ£¬ÇëÔÚÃüÁîÌáʾ·û´¦¼üÈëÒÔÏÂÄÚÈÝ£º
csc XMLsample.cs /doc:XMLsample.xml
ÈôÒª²é¿´Éú³ÉµÄ XML£¬Çë¼üÈëÏÂÃæµÄÃüÁ
type XMLsample.xml
2¡¢/doc ÃüÁî˵Ã÷
£¨1£©¡¢/doc£¨´¦ÀíÎĵµ×¢ÊÍ£©£¨C# ±àÒëÆ÷Ñ¡Ï
/doc Ñ¡ÏîÔÊÐíÔÚ XML ÎļþÖзÅÖÃÎĵµ×¢ÊÍ¡£
/doc:file
£¨2£©¡¢²ÎÊý file
XML µÄÊä³öÎļþ£¬ÓɱàÒëµÄÔ´´úÂëÎļþÖеÄ×¢ÊÍÌî³ä¡£
£¨3£©¡¢ ±¸×¢
ÔÚÔ´´úÂëÎļþÖУ¬¿É´¦ÀíÒÔÏÂÄÚÈÝ֮ǰµÄÎĵµ×¢ÊÍ£¬²¢½«ÆäÌí¼Óµ½ XML ÎļþÖУº
·         Óû§¶¨ÒåµÄÀàÐÍ£¬Èç class¡¢delegate »ò interface
·         ³ÉÔ±£¬Èç×ֶΡ¢Ê¼þ¡¢ÊôÐÔ»ò·½·¨
°üº¬ Main µÄÔ´´úÂëÎļþÊ×ÏÈÊä³öµ½ XML¡£
ÈôÒª½«Éú³ÉµÄ .xml ÎļþÓÃÓÚIntellisense¹¦ÄÜ£¬Çëʹ¸Ã .xml ÎļþµÄÎļþÃûÓëÒªÖ§³ÖµÄ³ÌÐò¼¯Í¬Ãû£¬È»ºóÈ·±£¸Ã .xml Îļþ·ÅÈëÓë¸Ã³ÌÐò¼¯ÏàͬµÄĿ¼ÖС£ÕâÑù£¬ÔÚ Visual Studio ÏîÄ¿ÖÐÒýÓóÌÐò¼¯Ê±£¬Ò²¿ÉÕÒµ½¸Ã .xml Îļþ¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼ûÌṩ´úÂë×¢ÊÍ¡£
³ý·ÇÓà /target:module ½øÐбàÒ룬·ñÔò file ½«°üº¬ ±ê¼Ç£¬ÒÔÖ¸¶¨°üº¬±àÒëÊä³öÎļþµÄ³ÌÐò¼¯Çåµ¥µÄÎļþÃû¡£
£¨4£©¡¢ËµÃ÷£º
/doc Ñ¡ÏîÊÊÓÃÓÚËùÓÐÊäÈëÎļþ£»»òÕߣ¬Èç¹û´ËÑ¡ÏîÊÇÔÚ“ÏîÄ¿ÉèÖÔÖÐÉèÖõģ¬ÔòÊÊÓÃÓÚÏîÄ¿ÖеÄËùÓÐÎļþ¡£ÈôÒª½ûÓÃÓëÌض¨µÄÎļþ»ò´úÂë¶ÎµÄÎĵµ×¢ÊÍÏà¹ØµÄ¾¯¸æ£¬ÇëʹÓà #pragma warning¡£
 
 
 
ÓйشӴúÂëÖеÄ×¢ÊÍÉú³ÉÎĵµµÄ·½·¨£¬Çë²Î¼û½¨ÒéµÄÎĵµ×¢Êͱê¼Ç¡£
ÓйØʾÀý£¬Çë²Î¼û “XML Îĵµ”ʾÀý¡£
ÔÚ Visual Studio ¿ª·¢»·¾³ÖÐÉèÖô˱àÒëÆ÷Ñ¡Ïî
1.       ´ò¿ªÏîÄ¿µÄ“ÊôÐÔ”Ò³¡£
2.       Ð޸ēXML ÎĵµÎļþ”ÊôÐÔ¡£
3¡¢C# ±àÒëÆ÷½«´úÂëÖеÄÎĵµ×¢ÊÍ


Ïà¹ØÎĵµ£º

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
private XmlDo ......

JavaScriptÈëÃÅÓëÆä¿ò¼ÜJQuery£¬JSONºÍXMLµÄ±È½Ï

µ±Ò³ÃæÔØÈëʱ£¬»áÖ´ÐÐλÓÚ body ²¿·ÖµÄ JavaScript¡£
µ±±»µ÷ÓÃʱ£¬Î»ÓÚ head ²¿·ÖµÄ JavaScript ²Å»á±»Ö´ÐС£
2006Äê1ÔÂ14ÈÕ£¬John Resig ÔÚBarCampNYCÉϵÚÒ»´Î·¢²¼ÁËjQuery¡£
 
JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ¡£Ò×ÓÚÈËÔĶÁºÍ±àд¡£Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚJavaScript£¨St ......

xml½âÎö



 
ʹÓÃSAX½âÎöºÍDOM½âÎöµÄʵÀý
ÊÕ²Ø



document.body.oncopy = function() {
if (window.clipboardData) {
s ......

Javaͨ¹ýXML SchemaУÑéXML

Javaͨ¹ýXML SchemaУÑéXML
 
XMLµÄУÑéÔÚXML´¦ÀíÖзdz£³£¼û£¬Èç¹ûûÓÐÓÐЧµÄ°ì·¨À´Ð£ÑéXMLµÄºÏ·¨ÐÔ£¬ÍùÍù»áµ¼ÖºܶàÎÊÌâ¡£
 
XMLµÄУÑéÊÇͨ¹ýXML Schema£¨XSD£© »òDTDÎļþµÄÓï·¨¹æ·¶À´Ð£ÑéµÄ¡£DTDÏÖÔÚÔ½À´Ô½²»ÊÜ»¶Ó­ÁË£¬ÔÚ´ËÑ¡ÓÃXSDÀ´Ð£Ñé¡£
 
JavaУÑéXMLÊǼþºÍ³¶µ­µÄÊÂÇ飬ÒòΪSunµÄXMLÏà¹ØÈí¼þ°ü» ......

xml½âÎö¶àÖؽڵã

xmlΪ£º
<friendShares>
<totalCount>352</totalCount>
<friendShare>
<code>XXXXXXX</code>
<date>2010-01-15T00:00:00+08:00</date>
<friendId>499</friendId>
<movie>
<code>XXXXXX</code>
<contentId>89718</content ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ