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

XML DTD XSD XSL XDR¶¼ÓÐʲôÇø±ð?

XML=¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ(eXtensible Markup Language).
¿ÉÀ©Õ¹±ê¼ÇÓïÑÔXMLÊÇÒ»ÖÖ¼òµ¥µÄÊý¾Ý´æ´¢ÓïÑÔ£¬Ê¹ÓÃһϵÁмòµ¥µÄ±ê¼ÇÃèÊöÊý¾Ý£¬¶øÕâЩ±ê¼Ç¿ÉÒÔÓ÷½±ãµÄ·½Ê½½¨Á¢£¬ËäÈ»XMLÕ¼ÓõĿռä±È¶þ½øÖÆÊý¾ÝÒªÕ¼Óøü¶àµÄ¿Õ¼ä£¬µ«XML¼«Æä¼òµ¥Ò×ÓÚÕÆÎÕºÍʹÓá£
XMLµÄ¼òµ¥Ê¹ÆäÒ×ÓÚÔÚÈκÎÓ¦ÓóÌÐòÖжÁдÊý¾Ý£¬ÕâʹXMLºÜ¿ì³ÉΪÊý¾Ý½»»»µÄΨһ¹«¹²ÓïÑÔ£¬ËäÈ»²»Í¬µÄÓ¦ÓÃÈí¼þÒ²Ö§³ÖÆäËüµÄÊý¾Ý½»»»¸ñʽ£¬µ«²»¾ÃÖ®ºóËûÃǶ¼½«Ö§³ÖXML£¬ÄǾÍÒâζ×ųÌÐò¿ÉÒÔ¸üÈÝÒ×µÄÓëWindows¡¢Mac OS, LinuxÒÔ¼°ÆäËûƽ̨ϲúÉúµÄÐÅÏ¢½áºÏ£¬È»ºó¿ÉÒÔºÜÈÝÒ×¼ÓÔØXMLÊý¾Ýµ½³ÌÐòÖв¢·ÖÎöËû£¬²¢ÒÔXML¸ñʽÊä³ö½á¹û¡£XMLµÄÇ°ÉíÊÇSGML£¨The Standard Generalized Markup Language£©£¬ÊÇ×ÔIBM´Ó60Äê´ú¾Í¿ªÊ¼·¢Õ¹µÄGML£¨Generalized Markup Language£© 
ͬHTMLÒ»Ñù£¬ XML (¿ÉÀ©Õ¹±êʶÓïÑÔ)ÊÇͨÓñêʶÓïÑÔ±ê×¼(SGML)µÄÒ»¸ö×Ó¼¯£¬ËüÊÇÃèÊöÍøÂçÉϵÄÊý¾ÝÄÚÈݺͽṹµÄ±ê×¼¡£¾¡¹ÜÈç´Ë£¬XML²»ÏóHTML£¬HTML½ö½öÌṩÁËÔÚÒ³ÃæÉÏÏÔʾÐÅÏ¢µÄͨÓ÷½·¨(ûÓÐÉÏÏÂÎÄÏà¹ØºÍ¶¯Ì¬¹¦ÄÜ) £¬XMLÔò¶ÔÊý¾Ý¸³ÓèÉÏÏÂÎÄÏà¹Ø¹¦ÄÜ£¬Ëü¼Ì³ÐÁËSGMLµÄ´ó²¿·Ö¹¦ÄÜ£¬È´Ê¹ÓÃÁ˲»Ì«¸´Ôӵļ¼Êõ¡£
ΪÁËʹµÃSGMLÏÔµÃÓû§ÓѺã¬XMLÖØж¨ÒåÁËSGMLµÄһЩÄÚ²¿ÖµºÍ²ÎÊý£¬È¥µôÁË´óÁ¿µÄºÜÉÙÓõ½µÄ¹¦ÄÜ£¬ÕâЩ·±ÔӵŦÄÜʹµÃSGMLÔÚÉè¼ÆÍøվʱÏԵø´ÔÓ»¯¡£XML±£ÁôÁËSGMLµÄ½á¹¹»¯¹¦ÄÜ£¬ÕâÑù¾ÍʹµÃÍøÕ¾Éè¼ÆÕß¿ÉÒÔ¶¨Òå×Ô¼ºµÄÎĵµÀàÐÍ£¬XMLͬʱҲÍƳöÒ»ÖÖÐÂÐÍÎĵµÀàÐÍ£¬Ê¹µÃ¿ª·¢ÕßÒ²¿ÉÒÔ²»±Ø¶¨ÒåÎĵµÀàÐÍ¡£ 
ÒòΪXMLÊÇW3CÖƶ¨µÄ£¬XMLµÄ±ê×¼»¯¹¤×÷ÓÉW3CµÄXML¹¤×÷×鸺Ô𣬸ÃС×é³ÉÔ±ÓÉÀ´×Ô¸÷¸öµØ·½ºÍÐÐÒµµÄר¼Ò×é³É£¬ËûÃÇͨ¹ýemail½»Á÷¶ÔXML±ê×¼µÄÒâ¼û£¬²¢Ìá³ö×Ô¼ºµÄ¿´·¨ (www.w3.org/TR/WD-xml)¡£ÒòΪXML ÊǸö¹«¹²¸ñʽ£¬ (Ëü²»×¨ÊôÓÚÈκÎÒ»¼Ò¹«Ë¾)£¬Äã²»±Øµ£ÐÄXML¼¼Êõ»á³ÉΪÉÙÊý¹«Ë¾µÄÓ¯Àû¹¤¾ß£¬XML²»ÊÇÒ»¸öÒÀ¸½ÓÚÌض¨ä¯ÀÀÆ÷µÄÓïÑÔ
DTD=ÀàÐͶ¨Òå(Documnet Type Definition)
DTD ÊÇÒ»Ì×¹ØÓÚ±ê¼Ç·ûµÄÓï·¨¹æÔò¡£ËüÊÇXML1.0°æ¹æ¸ñµÃÒ»²¿·Ö,ÊÇXMLÎļþµÄÑéÖ¤»úÖÆ,ÊôÓÚXMLÎļþ×é³ÉµÄÒ»²¿·Ö¡£
DTD ÊÇÒ»ÖÖ±£Ö¤XMLÎĵµ¸ñʽÕýÈ·µÄÓÐЧ·½·¨£¬¿ÉÒÔͨ¹ý±È½ÏXMLÎĵµºÍDTDÎļþÀ´¿´ÎĵµÊÇ·ñ·ûºÏ¹æ·¶£¬ÔªËغͱêǩʹÓÃÊÇ·ñÕýÈ·¡£Ò»¸öDTDÎĵµ°üº¬£ºÔªËصĶ¨Òå¹æÔò£¬ÔªËؼä¹ØϵµÄ¶¨Òå¹æÔò£¬ÔªËØ¿ÉʹÓõÄÊôÐÔ£¬¿ÉʹÓõÄʵÌå»ò·ûºÅ¹æÔò¡£
XMLÎļþÌṩӦÓóÌÐòÒ»¸öÊý¾Ý½»»»µÄ¸ñʽ,DTDÕýÊÇÈÃXMLÎļþÄܹ»³ÉΪÊý¾Ý½»»»µÄ±ê×¼,ÒòΪ²»Í¬µÄ¹«Ë¾Ö»Ð趨ÒåºÃ±ê×¼µÄDTD,¸÷¹«Ë¾¶¼


Ïà¹ØÎĵµ£º

[ת]Android¶ÁдXML£¨ÖУ©——SAX


 Õª×Ô--http://www.moandroid.com/?p=821
Android¶ÁдXML£¨ÖУ©——SAX
By: º£ÊÐò×Â¥ | In: Android¿ª·¢
22 ¾Å 2009
ÔÚAndroid¶ÁдXML£¨ÉÏ£©——package˵Ã÷ÖУ¬Ïêϸ½éÉÜÁËʹÓà DOM·½·¨¶ÁÈ¡XMLÎĵµ£¬ÓÉÓÚʹÓÃDOM·½·¨ÐèÒª½«Õû¸öXMLÎĵµ¼ÓÔØÄÚ´æÖУ¬¶Ôϵͳ×ÊÔ´Õ¼ÓñȽ϶࣬Õâ¶ÔÄÚ´æ±È½Ï½ôÕŵ ......

XML³£ÓòÙ×÷

 XMLÔÚÎÒÃǵijÌÐòÖÐÓõ½µÄÔ½À´Ô½¶à£¬ÒòΪËü´æ´¢¡¢¶ÁÈ¡¡¢Ð޸Ķ¼±È½Ï·½±ã¡£
ÏÂÃæÎÒÀ´·ÖÏíÒ»ÏÂXMLµÄ³£ÓòÙ×÷(Ôöɾ¸Ä²é)£¬ÏÂÃæÊdzÌÐòÔËÐÐЧ¹û£º
Ôö(Ôö¼Ó½Úµã°üÀ¨´´½¨XML):
/// <summary>
/// ´´½¨XMLÎĵµ
/// </summary>
/// <param name="path"></param>
......

javascript²Ù×÷xmlÉú³ÉÊ÷Ðβ˵¥


Õâ¸öЧ¹ûÓ¦¸Ã²»ËãʲôϡÆ棬ÍøÉÏÒ²ÓÐÏֳɵĴúÂ룬ÎÒÕâ¸öҲûʲôÌرðµÄµØ·½£¬Ö»ÊÇÒòΪÎÒ×Ô¼ºÐ´µÄ£¬Ò²ËãÊÇΪѧϰDOMºóÒ»¸öÁ·Ï°£»ÔÚIEϲâÊÔͨ¹ý£»
ʵÏÖЧ¹ûÊÇÕâÑùµÄ£º
¶ÁÈ¡XMLÎĵµ£»
²ÉÓõݹéÉú³ÉÎÞÏÞ¼¶µÄÊ÷Ðβ˵¥£»
Äܹ»ÏìÓ¦Êó±êʼþ£¬Õ¹¿ªÓë²ðµþ×Ó¼¶²Ëµ¥£»
Ê×ÏÈÊÇÉú³ÉÒ»¸öXMLÎĵµ£¬ÎÒÓõÄÊÇXML SpyµÄ±à¼­Æ÷£»
< ......

flash¶ÁÈ¡xmlÊý¾ÝÏÔʾͼƬÔÚ»ðºüÖв»ÄÜÕý³£ÏÔʾµÄÎÊÌâ

ÔÚhtmlÎļþÖÐǶÈëµÄ´úÂëÈçÏÂ:
<script type="text/javascript">
var xmlUrl="news.xml";
var swfURL="news.swf";
var img_Speed=2;
var page_Speed=3000;
var TextPosition="down";
var HeadlineColor="#ff0000";
var HeadlineFont="14px";
va ......

XMLÎļþ°ó¶¨Êý¾Ý¼¯¿Ø¼þ²Ù×÷

//Êý¾Ý°ó¶¨
    public void DataBind()
    {
        DataSet ds = new DataSet();
        ds.ReadXml(Server.MapPath(@"App_data/dbGuest.xml"));
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ