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

ѧϰ¼Ç¼ ģʽºÍxml£¨1£©

ÒÔÏÂΪһÌìµÄ»ù±¾Ñ§Ï°Çé¿ö£¬°üÀ¨Ñ§Ï°ºÍ¸´Ï°£¬Ä£Ê½²¿·ÖÇ°Ç°ºóºóÒ²¿´Á˺ܶàÁË£¬µ«ÊÇһֱûÄܼá³Ö¿´Í꣬ϣÍûÕâ´Î¿ÉÒÔ¼á³ÖÏÂÈ¥¡£
ģʽ²¿·ÖÎÒûÓÐÖ±½ÓÈ¥¿´±È½Ï¾­µäµÄ¡¶javaÓëģʽ¡·£¬ÕâÊéÌ«ºñÈÝÒ×ÈÃÎÒ¼á³Ö²»ÏÂÈ¥£¬¶øÊDzÉÓÃÁ˳̽ÜдµÄ¡¶´ó»°Éè¼Æģʽ¡·£¬
ÕâÊéдµÄºÜÓÐÒâ˼£¬Ò²ºÜÈÝÒ×Àí½â¡£Ï£ÍûÕâÑùµÄÊé¿ÉÒÔ¶àЩ¡£ºÇºÇ£¬µ±È»µÈ¿´ÍêÁË»¹ÊÇҪȥÑжÁ¡¶javaÓëģʽ¡·µÄ£¬ÄDZϾ¹ÊǾ­µä°¡£¡
xmlÊôÓÚÔçÒÔÒÅÍüµÄ¶«Î÷ÁË£¬ÌرðÊÇÎĵµÉùÃ÷²¿·Ö£¬ºÜ¶àµÄ¶¨ÒåÒѾ­Íü¼ÇÁËÊÇɶÒâ˼£¬ÔÚ´ËÒª¸ÐлËïöεÄxmlÊÓƵ¡£°³¾ÍÊǸöÀÁÈË¡£
ÿÌìѧϰһµã£¬³äʵһµã£¬¿ªÐÄÒ»µã¡£ºÇºÇ£¡
Ò»¶¨Òª¼á³ÖÏÂÈ¥¡£
Ò»£ºÉè¼Æģʽ
¹Û²ìÕßģʽ£¨·¢²¼-¶©ÔÄģʽ£©publish/subscribe
¸ÃģʽÍêÃÀÌåÏÖÁËÒÀÀµµ¹×°Ô­Ôò£¨ÊµÏÖÒÀÀµ³éÏó£©
Ò»¸ö³éÏóÄ£ÐÍÓÐ2¸ö·½Ã棬һ¸ö·½ÃæÒÀÀµÓÚÁíÍâÒ»¸ö·½Ãæ¡£ÕâʱʹÓù۲ìÕßģʽ¿ÉÒÔ½«ÕâÁ½Õß·â×°ÔÚ¶ÀÁ¢µÄ¶ÔÏóÖУ¬Ê¹ËûÃǶÀÁ¢µÄ¸Ä±äºÍ·þÓá£
µ÷ÓÃÕßÓÀÔ¶Ö»ÄÜ¿´µ½³éÏóµÄÀà
¼òµ¥¹¤³§£¬³éÏ󹤳§Ä£Ê½
¼òµ¥¹¤³§Ä£Ê½Î¥±³ÁË¿ª·Å·â±ÕÔ­Ôò[¿ÉÒÔʹÓ÷´ÉäÀ´ÃÖ²¹ Class.forName(ÐèҪʵÀý»¯µÄÀàÃû£¬ÐèҪȫ·¾¶Ãû).newInstance]
³éÏ󹤳§ÍêÃÀ½â¾öÁË£¬ÐèÒªÔö¼Ó²úÆ·ÖÖÀàµÄÇé¿ö£¬Ö»ÐèÒªÀ©Õ¹Àà¾Í¿ÉÒÔ£¬²»ÐèÒª¸Ä±äÔ­ÓеÄÀ࣬µ«ÊÇÔö¼ÓµÄÀà¹ýÓÚ¶à
¿ÉÒÔʹÓüòµ¥¹¤³§Ä£Ê½+·´Éä½øÐÐÍêÃÀ½â¾ö
ģʽ²¿·ÖÒÔºó»áרÃųö×ܽáÌû
¶þ£ºxml²¿·Ö
xmlÎïÀíÉϾÍÊÇÒ»¸öÎĵµÊµÌå
xmlÂß¼­ÉÏ·ÖΪÎå¸ö²¿·Ö
1.xmlÉùÃ÷               <?xml version='1.0'?>
2.ÎĵµÀàÐÍÉùÃ÷     ͨ¹ýÎĵµÀàÐͶ¨Ò壨DTD£©À´ÊµÏÖ£¬°üÀ¨ÄÚ²¿DTD ºÍÍⲿDTD 
                   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "xx.dtd">´ËÀýΪÍⲿDTD
3.ÔªËØ            ²»ÄÜ°üÀ¨ < ,]]>,&
4.×¢ÊÍ            <!--zhu shi -->
5.Ö´ÐÐÖ¸Áî         ¿ÉÒÔÖ¸¶¨Ò»Ð©ÓÉÍⲿ³ÌÐòÀ´´¦Àí£¬xml±àÒëÆ÷²»»á´¦ÀíµÄÔªËØ
¸ñʽÁ¼ºÃµÄxmlÎĵµÖпոñÒ²ÊÇ°üÀ¨ÔÚÄڵģ¬Èç¹ûÐèÒªÖ¸¶¨µÄ±£ÁôijЩ¿Õ¸ñ£¬ÐèҪʹÓÃxml:space
Ö¸¶¨ÔªËØÖÐʹÓõÄÎÄ×Ö


Ïà¹ØÎĵµ£º

xml ѧϰ¼Ç¼

1.
ÓÃXML½áµãµÄÊôÐÔÖµ²éÕÒÏàͬ½áµãµÄÆäËüÊôÐÔÖµ[C#]
ʵÏÖ¹¦ÄÜ:
ÓÃXML½áµãµÄÊôÐÔÖµ²éÕÒÏàͬ½áµãµÄÆäËüÊôÐÔÖµ,¼´ÈçϵÄxml,ÊäÈëÒ»¸ö001,ÄܵóöFistTag_ValueÕâ¸öÖµÀ´.
1)Ê×ÏÈ,°ÑÏÂÃæµÄxmlÎĵµ´æÔÚDÅÌĿ¼ÏÂ,ÃüÃûΪ:Test.xml,xmlÎĵµÄÚÈÝÈçÏÂ
//-------------------------------------xmlÎĵµ·Ö¸îÏß- ......

WindowsXPËÑË÷PHP¡¢XMLµÈÎļþÄڵİüº¬ÎÄ×ÖµÄÉèÖ÷½·¨

µ±ÎÒÃÇÓÃWINDOWSËÑË÷ij°üº¬Ä³ÎÄ×ÖµÄÎļþʱ£¬¿ÉÒÔÔÚ“°üº¬ÎÄ×Ö”´¦ÌîÉÏËÑË÷´Ê¡£µ«ÊÇһЩ²»³£¼ûµÄºó׺ÃûÎļþWINDOWS²»»áËÑË÷£¬È磺£¬.log¡¢.dll¡¢.js¡¢.asp¡¢.xml¡¢.xsl¡¢.hta¡¢.css¡¢.wsh¡¢.cpp¡¢.c »ò .hµÈ¼°ÎÞºó׺ÃûµÄÎļþ¡£¶ÔÓÚÎҵȳÌÐò°®ºÃÕßÀ´ËµÊµÔÚÌ«²»·½±ãÁË£¬ËäÈ»ÓГÎı¾Ìæ»»´óʦ”µÈÈí¼þÄÜ×öÕ ......

Ò»¸öʹÓÃJDOM¶ÁÈ¡XMLÎļþµÄ¹¤¾ßÀà

/*
 * history
 *
 * Created on 2003-5-26
 *
 * 2003-06-05
 *   1.Ôö¼ÓÁËLogµÄ´¦ÀíÐÅÏ¢¡£
 *   2.Å׳öµÄÒì³£ÓÉÔ­À´UtilExceptionµÄ¸Ä±ä³ÉXMLException£¬ºóÕ߼̳ÐÇ°Õß¡£
 *
 * 2003-09-02 by David Yu
 *   1.Ôö¼ÓÁ˸ıäÒ»¸ö ......

asp.netµÄXMLͨÓòÙ×÷Àà

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ