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

javaÖÐorg.apache.commons.digesterÀàÓ÷¨

xmlÎļþÄÚÈÝ£º
 <?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel switchTime="20080101000101" k="1.07" n="6" s="55" channelId="0404" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0405" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0406" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0407" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0408" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0409" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0433" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0434" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0437" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0435" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0438" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0439" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0440" channelName="xxxx.xxxx.xxx.cn"/>
</channels>
import org.apache.commons.digester.Digester;
Digester digester = new Digester();
//´Ë·½·¨×÷ÓÃÊÇÊÇ·ñ¶ÔXMLÎĵµ½øÐÐDTDÑéÖ¤
digester.setValidating(false);
//addObjectCreateµÄ×÷ÓÃÊÇ£ºµ±Óö¼ûchannelsÔªËصÄʱºò£¬²úÉúÒ»¸öjava.util.ArrayList¶ÔÏó
digester.addObjectCreate("channels", "java.util.ArrayList");
//addSetProperties×÷ÓÃÊÇ£º¶ÔchannelsÔªËØËùº¬µÄÊôÐÔ¸³Öµ(¼


Ïà¹ØÎĵµ£º

Java Òì³£´¦Àí

 Java Òì³££¨ Exception£©·ÖΪÊÜ¿ØÒì³£ºÍ²»ÊÜ¿ØÒì³£Á½ÖÖ¡£ÆäÖÐÊÜ¿ØÒì³£±ØÐëÇ¿ÖÆÖ´Ðⶻñ»òÕßÉùÃ÷£¬·ñÔò½«³öÏÖ±àÒë´íÎó¡£ ¶ÔÓÚ·ÇÊÜ
 
¿ØÒì³£java±àÒëÆ÷²»»á¼ì²é´úÂëÒÔÈ·¶¨ÊDz¶»ñ»òÕßÉùÃ÷²»ÊÜ¿ØÒì³£¡£¾¡¹Ü±àÒëÆ÷¶Ô²»ÊÜ¿ØÒ쳣ûÓⶻñ»òÕßÉùÃ÷µÄÇ¿ÖÆÒªÇ󣬵«ÖªµÀ·¢ÉúÕâÖÖÒ쳣ʱӦÌṩºÏÊʵÄÒì³£´¦Àí´úÂë¡£
  ......

java³ÌÐòÔ±±ØÐëÕÆÎÕµÄ֪ʶ

 1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼­Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
    2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡ ......

java»ù±¾¿ò¼ÜÄã»áÂð£¿

 java web ¿ª·¢ ±íʾ²ã¿ò¼Ü struts  jsf    struts2.0   webworkµÈ         
                       ¿ØÖƲã¿ò¼Ü&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ