ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产成人一区,国产精品成人免费视频,久久久久国产精品嫩草影院http://www.aygfsteel.com/sitinspring/category/28145.htmlA man dose his can util the destiny was revealed.zh-cnSat, 23 Feb 2008 20:19:06 GMTSat, 23 Feb 2008 20:19:06 GMT60Tomcat工程中的log4j配置http://www.aygfsteel.com/sitinspring/archive/2008/02/16/180182.html如坐春风如坐春风Sat, 16 Feb 2008 05:53:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2008/02/16/180182.htmlhttp://www.aygfsteel.com/sitinspring/comments/180182.htmlhttp://www.aygfsteel.com/sitinspring/archive/2008/02/16/180182.html#Feedback0http://www.aygfsteel.com/sitinspring/comments/commentRss/180182.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/180182.html阅读全文

如坐春风 2008-02-16 13:53 发表评论
]]>
分页SQL语句分析åQˆOracle数据库)http://www.aygfsteel.com/sitinspring/archive/2008/02/14/179911.html如坐春风如坐春风Thu, 14 Feb 2008 05:05:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2008/02/14/179911.htmlhttp://www.aygfsteel.com/sitinspring/comments/179911.htmlhttp://www.aygfsteel.com/sitinspring/archive/2008/02/14/179911.html#Feedback0http://www.aygfsteel.com/sitinspring/comments/commentRss/179911.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/179911.html阅读全文

如坐春风 2008-02-14 13:05 发表评论
]]>
用于ž®†å¯¹è±¡æŒä¹…化到XMLæ–‡äšg以及è¯Õd–åQŒåˆ é™¤çš„æŒä¹…化类åQˆdom4j,xstream实现åQ?/title><link>http://www.aygfsteel.com/sitinspring/archive/2008/01/09/173856.html</link><dc:creator>如坐春风</dc:creator><author>如坐春风</author><pubDate>Tue, 08 Jan 2008 17:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/sitinspring/archive/2008/01/09/173856.html</guid><wfw:comment>http://www.aygfsteel.com/sitinspring/comments/173856.html</wfw:comment><comments>http://www.aygfsteel.com/sitinspring/archive/2008/01/09/173856.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sitinspring/comments/commentRss/173856.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sitinspring/services/trackbacks/173856.html</trackback:ping><description><![CDATA[     摘要: 弄着玩的åQŒæ²¡å¤šå°‘意义ã€?<br>在此¾cȝš„帮助下,你不必关注细节就能将对象持久化到XMLæ–‡äšg以及è¯Õd–åQŒåˆ é™¤ï¼Œåªæœ‰æ›´æ–°éºÈƒ¦ä¸€ç‚¹ï¼Œä½ éœ€è¦å…ˆåˆ é™¤å†æ·»åŠ ã€?<br>  <a href='http://www.aygfsteel.com/sitinspring/archive/2008/01/09/173856.html'>阅读全文</a><img src ="http://www.aygfsteel.com/sitinspring/aggbug/173856.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sitinspring/" target="_blank">如坐春风</a> 2008-01-09 01:21 <a href="http://www.aygfsteel.com/sitinspring/archive/2008/01/09/173856.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用反射½Ž€åŒ–繁琐的对对象成员设值取值的˜q‡ç¨‹¾l?/title><link>http://www.aygfsteel.com/sitinspring/archive/2008/01/05/172970.html</link><dc:creator>如坐春风</dc:creator><author>如坐春风</author><pubDate>Sat, 05 Jan 2008 07:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/sitinspring/archive/2008/01/05/172970.html</guid><wfw:comment>http://www.aygfsteel.com/sitinspring/comments/172970.html</wfw:comment><comments>http://www.aygfsteel.com/sitinspring/archive/2008/01/05/172970.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sitinspring/comments/commentRss/172970.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sitinspring/services/trackbacks/172970.html</trackback:ping><description><![CDATA[     摘要: 在把对象持久化到XMLæ–‡äšg和从XMLæ–‡äšg取出æ—Óž¼Œæˆ‘们æ€ÀL˜¯è¦ä¹¦å†™å†—长乏味的一个萝卜一个坑式的代码åQŒç±»æˆå‘˜­‘Šå¤š­‘Šè§‰å¾—繁琐,本文利用反射½Ž€åŒ–了˜q™ä¸ª˜q‡ç¨‹åQŒæ¬¢˜qŽå¤§å®¶æŒ‡ç‚V€?nbsp; <a href='http://www.aygfsteel.com/sitinspring/archive/2008/01/05/172970.html'>阅读全文</a><img src ="http://www.aygfsteel.com/sitinspring/aggbug/172970.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sitinspring/" target="_blank">如坐春风</a> 2008-01-05 15:10 <a href="http://www.aygfsteel.com/sitinspring/archive/2008/01/05/172970.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用反射½Ž€åŒ–繁琐的对对象成员设值取值的˜q‡ç¨‹http://www.aygfsteel.com/sitinspring/archive/2008/01/03/172455.html如坐春风如坐春风Thu, 03 Jan 2008 05:49:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2008/01/03/172455.htmlhttp://www.aygfsteel.com/sitinspring/comments/172455.htmlhttp://www.aygfsteel.com/sitinspring/archive/2008/01/03/172455.html#Feedback0http://www.aygfsteel.com/sitinspring/comments/commentRss/172455.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/172455.html阅读全文

如坐春风 2008-01-03 13:49 发表评论
]]>
使用泛型¾cȝ®€åŒ–服务层(Service)¾cȝš„设计http://www.aygfsteel.com/sitinspring/archive/2007/12/28/171243.html如坐春风如坐春风Fri, 28 Dec 2007 08:47:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2007/12/28/171243.htmlhttp://www.aygfsteel.com/sitinspring/comments/171243.htmlhttp://www.aygfsteel.com/sitinspring/archive/2007/12/28/171243.html#Feedback2http://www.aygfsteel.com/sitinspring/comments/commentRss/171243.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/171243.html阅读全文

如坐春风 2007-12-28 16:47 发表评论
]]>
æ ?w¨¨i)状¾l“构的持久化½CÞZ¾‹(XML实现持久å±?http://www.aygfsteel.com/sitinspring/archive/2007/12/19/168757.html如坐春风如坐春风Wed, 19 Dec 2007 07:10:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2007/12/19/168757.htmlhttp://www.aygfsteel.com/sitinspring/comments/168757.htmlhttp://www.aygfsteel.com/sitinspring/archive/2007/12/19/168757.html#Feedback0http://www.aygfsteel.com/sitinspring/comments/commentRss/168757.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/168757.html
ä¾‹ä¸­ä½¿ç”¨çš„æ•°æ®ç»“æž„äØ“(f¨´)标签¾l“æž„,如Java包括J2EEå’ŒJ2SE,J2EE包括JSp,EJB½{?j2se包括swing,awt,applet½{?
  é˜…读全文

如坐春风 2007-12-19 15:10 发表评论
]]>
JTable常见用法¾l†åˆ™http://www.aygfsteel.com/sitinspring/archive/2007/12/18/168425.html如坐春风如坐春风Tue, 18 Dec 2007 03:04:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2007/12/18/168425.htmlhttp://www.aygfsteel.com/sitinspring/comments/168425.htmlhttp://www.aygfsteel.com/sitinspring/archive/2007/12/18/168425.html#Feedback0http://www.aygfsteel.com/sitinspring/comments/commentRss/168425.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/168425.html  é˜…读全文

如坐春风 2007-12-18 11:04 发表评论
]]>
Dom4j下蝲及ä‹É用Dom4jè¯Õd†™XML½Ž€ä»?/title><link>http://www.aygfsteel.com/sitinspring/archive/2007/12/16/168099.html</link><dc:creator>如坐春风</dc:creator><author>如坐春风</author><pubDate>Sun, 16 Dec 2007 11:46:00 GMT</pubDate><guid>http://www.aygfsteel.com/sitinspring/archive/2007/12/16/168099.html</guid><wfw:comment>http://www.aygfsteel.com/sitinspring/comments/168099.html</wfw:comment><comments>http://www.aygfsteel.com/sitinspring/archive/2007/12/16/168099.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sitinspring/comments/commentRss/168099.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sitinspring/services/trackbacks/168099.html</trackback:ping><description><![CDATA[<p>sitinspring(如坐春风)原创,转蝲è¯äh³¨æ˜Žä½œè€…及出处.<br /> <br /> 要ä‹É用dom4jè¯Õd†™XML文档,需要先下蝲dom4jåŒ?dom4j官方¾|‘ç«™åœ?<a >http://www.dom4j.org/<br /> </a>目前最新dom4j包下载地址:<a >http://nchc.dl.sourceforge.net/sourceforge/dom4j/dom4j-1.6.1.zip</a></p> 解开后有两个åŒ?仅操作XML文档的话把dom4j-1.6.1.jar加入工程ž®±å¯ä»¥äº†,如果需要ä‹É用XPath的话˜q˜éœ€è¦åŠ å…¥åŒ…jaxen-1.1-beta-7.jar.<br /> <br /> 以下是相å…Ïx“ä½?<br /> <br /> <strong>一.Document对象相关<br /> </strong><br /> <em>1.è¯Õd–XMLæ–‡äšg,获得document对象.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            SAXReader reader </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SAXReader();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Document  document </span><span style="color: #000000">=</span><span style="color: #000000"> reader.read(</span><span style="color: #0000ff">new</span><span style="color: #000000"> File(</span><span style="color: #000000">"</span><span style="color: #000000">input.xml</span><span style="color: #000000">"</span><span style="color: #000000">));</span></div> <br /> <br /> <em>2.解析XML形式的文æœ?得到document对象.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            String text </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><members></members></span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Document document </span><span style="color: #000000">=</span><span style="color: #000000"> DocumentHelper.parseText(text);</span></div> <br /> <em>3.ä¸ÕdŠ¨åˆ›å¾document对象.<br /> </em> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            Document document </span><span style="color: #000000">=</span><span style="color: #000000"> DocumentHelper.createDocument();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Element root </span><span style="color: #000000">=</span><span style="color: #000000"> document.addElement(</span><span style="color: #000000">"</span><span style="color: #000000">members</span><span style="color: #000000">"</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> åˆ›å¾æ ¹èŠ‚ç‚?/span></div> <br /> <strong>äº?节点相关<br /> </strong><br /> <em>1.获取文档的根节点.<br /> </em> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">Element rootElm </span><span style="color: #000000">=</span><span style="color: #000000"> document.getRootElement();</span></div> <br /> <em>2.取得某节点的单个子节ç‚?</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">Element memberElm</span><span style="color: #000000">=</span><span style="color: #000000">root.element(</span><span style="color: #000000">"</span><span style="color: #000000">member</span><span style="color: #000000">"</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> "member"是节点名</span></div> <br /> <em>3.取得节点的文å­?/em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">String text</span><span style="color: #000000">=</span><span style="color: #000000">memberElm.getText();</span></div> 也可以用:<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">String text</span><span style="color: #000000">=</span><span style="color: #000000">root.elementText(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> ˜q™ä¸ªæ˜¯å–得根节点下的name字节点的文字.<br /> <br /> <em>4.å–å¾—æŸèŠ‚ç‚¹ä¸‹åäØ“(f¨´)"member"的所有字节点òq¶è¿›è¡ŒéåŽ?</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">List nodes </span><span style="color: #000000">=</span><span style="color: #000000"> rootElm.elements(</span><span style="color: #000000">"</span><span style="color: #000000">member</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img id="Codehighlighter1_94_153_Open_Image" onclick="this.style.display='none'; Codehighlighter1_94_153_Open_Text.style.display='none'; Codehighlighter1_94_153_Closed_Image.style.display='inline'; Codehighlighter1_94_153_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_94_153_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_94_153_Closed_Text.style.display='none'; Codehighlighter1_94_153_Open_Image.style.display='inline'; Codehighlighter1_94_153_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">for</span><span style="color: #000000"> (Iterator it </span><span style="color: #000000">=</span><span style="color: #000000"> nodes.iterator(); it.hasNext();) </span><span id="Codehighlighter1_94_153_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_94_153_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   Element elm </span><span style="color: #000000">=</span><span style="color: #000000"> (Element) it.next();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />   </span><span style="color: #008000">//</span><span style="color: #008000"> do something</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span><span style="color: #000000">}</span></span></div> <br /> <em>5.å¯ÒŽ(gu¨©)ŸèŠ‚ç‚¹ä¸‹çš„æ‰€æœ‰å­èŠ‚ç‚¹˜q›è¡Œéåކ.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_56_124_Open_Image" onclick="this.style.display='none'; Codehighlighter1_56_124_Open_Text.style.display='none'; Codehighlighter1_56_124_Closed_Image.style.display='inline'; Codehighlighter1_56_124_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_56_124_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_56_124_Closed_Text.style.display='none'; Codehighlighter1_56_124_Open_Image.style.display='inline'; Codehighlighter1_56_124_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #000000">            </span><span style="color: #0000ff">for</span><span style="color: #000000">(Iterator it</span><span style="color: #000000">=</span><span style="color: #000000">root.elementIterator();it.hasNext();)</span><span id="Codehighlighter1_56_124_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_56_124_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                Element element </span><span style="color: #000000">=</span><span style="color: #000000"> (Element) it.next();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: #008000">//</span><span style="color: #008000"> do something</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span><span style="color: #000000">            }</span></span></div> <br /> <em>6.在某节点下添加子节点.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">Element ageElm </span><span style="color: #000000">=</span><span style="color: #000000"> newMemberElm.addElement(</span><span style="color: #000000">"</span><span style="color: #000000">age</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> <br /> <em>7.讄¡½®èŠ‚ç‚¹æ–‡å­—.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">ageElm.setText(</span><span style="color: #000000">"</span><span style="color: #000000">29</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> <br /> <em>8.删除某节ç‚?</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">parentElm.remove(childElm);</span><span style="color: #008000">//</span><span style="color: #008000"> childElm是待删除的节ç‚?parentElm是其父节ç‚?/span></div> <br /> <em>9.æ·ÕdŠ ä¸€ä¸ªCDATA节点.<br /> </em> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">        Element contentElm </span><span style="color: #000000">=</span><span style="color: #000000"> infoElm.addElement(</span><span style="color: #000000">"</span><span style="color: #000000">content</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        contentElm.addCDATA(diary.getContent());</span></div> <br /> <br /> <strong>ä¸?属性相å…?</strong><br /> <em>1.取得某节点下的某属æ€?/em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            Element root</span><span style="color: #000000">=</span><span style="color: #000000">document.getRootElement();    <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Attribute attribute</span><span style="color: #000000">=</span><span style="color: #000000">root.attribute(</span><span style="color: #000000">"</span><span style="color: #000000">size</span><span style="color: #000000">"</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> å±žæ€§åname</span></div> <br /> <em>2.取得属性的文字</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            String text</span><span style="color: #000000">=</span><span style="color: #000000">attribute.getText();</span></div> 也可以用:<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">String text2</span><span style="color: #000000">=</span><span style="color: #000000">root.element(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">).attributeValue(</span><span style="color: #000000">"</span><span style="color: #000000">firstname</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> ˜q™ä¸ªæ˜¯å–得根节点下name字节点的属性firstnameçš„å€?<br /> <br /> <em>3.遍历某节点的所有属æ€?/em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            Element root</span><span style="color: #000000">=</span><span style="color: #000000">document.getRootElement();    <br /> <img id="Codehighlighter1_102_223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_102_223_Open_Text.style.display='none'; Codehighlighter1_102_223_Closed_Image.style.display='inline'; Codehighlighter1_102_223_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_102_223_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_102_223_Closed_Text.style.display='none'; Codehighlighter1_102_223_Open_Image.style.display='inline'; Codehighlighter1_102_223_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />            </span><span style="color: #0000ff">for</span><span style="color: #000000">(Iterator it</span><span style="color: #000000">=</span><span style="color: #000000">root.attributeIterator();it.hasNext();)</span><span id="Codehighlighter1_102_223_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_102_223_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                Attribute attribute </span><span style="color: #000000">=</span><span style="color: #000000"> (Attribute) it.next();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                String text</span><span style="color: #000000">=</span><span style="color: #000000">attribute.getText();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                System.out.println(text);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />            }</span></span></div> <br /> <em>4.讄¡½®æŸèŠ‚ç‚¹çš„å±žæ€§å’Œæ–‡å­—.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">newMemberElm.addAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">sitinspring</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> <br /> <em>5.讄¡½®å±žæ€§çš„æ–‡å­—</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            Attribute attribute</span><span style="color: #000000">=</span><span style="color: #000000">root.attribute(</span><span style="color: #000000">"</span><span style="color: #000000">name</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            attribute.setText(</span><span style="color: #000000">"</span><span style="color: #000000">sitinspring</span><span style="color: #000000">"</span><span style="color: #000000">);</span></div> <br /> <em>6.删除某属æ€?br /> </em> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            Attribute attribute</span><span style="color: #000000">=</span><span style="color: #000000">root.attribute(</span><span style="color: #000000">"</span><span style="color: #000000">size</span><span style="color: #000000">"</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> å±žæ€§åname</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">            root.remove(attribute);</span></div> <br /> <strong>å›?ž®†æ–‡æ¡£å†™å…¥XMLæ–‡äšg.<br /> </strong><em>1.æ–‡æ¡£ä¸­å…¨ä¸ø™‹±æ–?不设¾|®ç¼–ç ?直接写入的åÅžå¼?</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">XMLWriter writer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> XMLWriter(</span><span style="color: #0000ff">new</span><span style="color: #000000"> FileWriter(</span><span style="color: #000000">"</span><span style="color: #000000">output.xml</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />writer.write(document);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />writer.close();</span></div> <br /> <em>2.文档中含有中æ–?讄¡½®¾~–码格式写入的åÅžå¼?<br /> </em> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            OutputFormat format </span><span style="color: #000000">=</span><span style="color: #000000"> OutputFormat.createPrettyPrint();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            format.setEncoding(</span><span style="color: #000000">"</span><span style="color: #000000">GBK</span><span style="color: #000000">"</span><span style="color: #000000">);    </span><span style="color: #008000">//</span><span style="color: #008000"> æŒ‡å®šXML¾~–码        </span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000">            XMLWriter writer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> XMLWriter(</span><span style="color: #0000ff">new</span><span style="color: #000000"> FileWriter(</span><span style="color: #000000">"</span><span style="color: #000000">output.xml</span><span style="color: #000000">"</span><span style="color: #000000">),format);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            writer.write(document);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            writer.close();</span></div> <br /> <strong>äº?字符串与XMLçš„è{æ?/strong><br /> <em>1.ž®†å­—½W¦ä¸²è½¬åŒ–为XML</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">String text </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><members> <member>sitinspring</member> </members></span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />Document document </span><span style="color: #000000">=</span><span style="color: #000000"> DocumentHelper.parseText(text);</span></div> <br /> <em>2.ž®†æ–‡æ¡£æˆ–节点的XML转化为字½W¦ä¸².</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">            SAXReader reader </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SAXReader();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Document  document </span><span style="color: #000000">=</span><span style="color: #000000"> reader.read(</span><span style="color: #0000ff">new</span><span style="color: #000000"> File(</span><span style="color: #000000">"</span><span style="color: #000000">input.xml</span><span style="color: #000000">"</span><span style="color: #000000">));            <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Element root</span><span style="color: #000000">=</span><span style="color: #000000">document.getRootElement();                <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            String docXmlText</span><span style="color: #000000">=</span><span style="color: #000000">document.asXML();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            String rootXmlText</span><span style="color: #000000">=</span><span style="color: #000000">root.asXML();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            Element memberElm</span><span style="color: #000000">=</span><span style="color: #000000">root.element(</span><span style="color: #000000">"</span><span style="color: #000000">member</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />            String memberXmlText</span><span style="color: #000000">=</span><span style="color: #000000">memberElm.asXML();</span></div> <br /> <strong>å…?使用XPath快速找到节ç‚?/strong>.<br /> <em>è¯Õd–çš„XML文档½CÞZ¾‹</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff"><?</span><span style="color: #ff00ff">xml version="1.0" encoding="UTF-8"</span><span style="color: #0000ff">?></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><</span><span style="color: #800000">projectDescription</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">name</span><span style="color: #0000ff">></span><span style="color: #000000">MemberManagement</span><span style="color: #0000ff"></</span><span style="color: #800000">name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">comment</span><span style="color: #0000ff">></</span><span style="color: #800000">comment</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">projects</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000">PRJ1</span><span style="color: #0000ff"></</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000">PRJ2</span><span style="color: #0000ff"></</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000">PRJ3</span><span style="color: #0000ff"></</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000">PRJ4</span><span style="color: #0000ff"></</span><span style="color: #800000">project</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">projects</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">buildSpec</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">buildCommand</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff"><</span><span style="color: #800000">name</span><span style="color: #0000ff">></span><span style="color: #000000">org.eclipse.jdt.core.javabuilder</span><span style="color: #0000ff"></</span><span style="color: #800000">name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff"><</span><span style="color: #800000">arguments</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff"></</span><span style="color: #800000">arguments</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">buildCommand</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">buildSpec</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">natures</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">nature</span><span style="color: #0000ff">></span><span style="color: #000000">org.eclipse.jdt.core.javanature</span><span style="color: #0000ff"></</span><span style="color: #800000">nature</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">natures</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">projectDescription</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <br /> <em>使用XPath快速找到节点project.</em><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_39_491_Open_Image" onclick="this.style.display='none'; Codehighlighter1_39_491_Open_Text.style.display='none'; Codehighlighter1_39_491_Closed_Image.style.display='inline'; Codehighlighter1_39_491_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_39_491_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_39_491_Closed_Text.style.display='none'; Codehighlighter1_39_491_Open_Image.style.display='inline'; Codehighlighter1_39_491_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: #000000"> </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args)</span><span id="Codehighlighter1_39_491_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_39_491_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    SAXReader reader </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SAXReader();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img id="Codehighlighter1_93_427_Open_Image" onclick="this.style.display='none'; Codehighlighter1_93_427_Open_Text.style.display='none'; Codehighlighter1_93_427_Closed_Image.style.display='inline'; Codehighlighter1_93_427_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_93_427_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_93_427_Closed_Text.style.display='none'; Codehighlighter1_93_427_Open_Image.style.display='inline'; Codehighlighter1_93_427_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: #0000ff">try</span><span id="Codehighlighter1_93_427_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_93_427_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      Document  doc </span><span style="color: #000000">=</span><span style="color: #000000"> reader.read(</span><span style="color: #0000ff">new</span><span style="color: #000000"> File(</span><span style="color: #000000">"</span><span style="color: #000000">sample.xml</span><span style="color: #000000">"</span><span style="color: #000000">));<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      List projects</span><span style="color: #000000">=</span><span style="color: #000000">doc.selectNodes(</span><span style="color: #000000">"</span><span style="color: #000000">/projectDescription/projects/project</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      Iterator it</span><span style="color: #000000">=</span><span style="color: #000000">projects.iterator();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      <br /> <img id="Codehighlighter1_316_414_Open_Image" onclick="this.style.display='none'; Codehighlighter1_316_414_Open_Text.style.display='none'; Codehighlighter1_316_414_Closed_Image.style.display='inline'; Codehighlighter1_316_414_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_316_414_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_316_414_Closed_Text.style.display='none'; Codehighlighter1_316_414_Open_Image.style.display='inline'; Codehighlighter1_316_414_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />      </span><span style="color: #0000ff">while</span><span style="color: #000000">(it.hasNext())</span><span id="Codehighlighter1_316_414_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_316_414_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        Element elm</span><span style="color: #000000">=</span><span style="color: #000000">(Element)it.next();       <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(elm.getText());<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />      }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />      <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_452_487_Open_Image" onclick="this.style.display='none'; Codehighlighter1_452_487_Open_Text.style.display='none'; Codehighlighter1_452_487_Closed_Image.style.display='inline'; Codehighlighter1_452_487_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_452_487_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_452_487_Closed_Text.style.display='none'; Codehighlighter1_452_487_Open_Image.style.display='inline'; Codehighlighter1_452_487_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: #0000ff">catch</span><span style="color: #000000">(Exception ex)</span><span id="Codehighlighter1_452_487_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_452_487_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />       ex.printStackTrace();<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />  }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <img src ="http://www.aygfsteel.com/sitinspring/aggbug/168099.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sitinspring/" target="_blank">如坐春风</a> 2007-12-16 19:46 <a href="http://www.aygfsteel.com/sitinspring/archive/2007/12/16/168099.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>¿Uæœ‰çš„æˆå‘˜èƒ½è¢«å­¾cȝ‘ô承吗?http://www.aygfsteel.com/sitinspring/archive/2007/12/04/165288.html如坐春风如坐春风Tue, 04 Dec 2007 12:42:00 GMThttp://www.aygfsteel.com/sitinspring/archive/2007/12/04/165288.htmlhttp://www.aygfsteel.com/sitinspring/comments/165288.htmlhttp://www.aygfsteel.com/sitinspring/archive/2007/12/04/165288.html#Feedback5http://www.aygfsteel.com/sitinspring/comments/commentRss/165288.htmlhttp://www.aygfsteel.com/sitinspring/services/trackbacks/165288.html
˜q™ä¸ªæœºåˆ¶å¯¹äºŽå¤æ‚的类体系中保护父¾cÖM¸è¢«æ»¥ç”¨å¾ˆæœ‰å¥½å¤?  é˜…读全文

如坐春风 2007-12-04 20:42 发表评论
]]>
遍历òq¶æ‰¹é‡åˆ é™¤å®¹å™¨ä¸­å…ƒç´ å‡ºçްConcurrentModificationException原因及处¾|?/title><link>http://www.aygfsteel.com/sitinspring/archive/2007/12/03/165006.html</link><dc:creator>如坐春风</dc:creator><author>如坐春风</author><pubDate>Mon, 03 Dec 2007 13:04:00 GMT</pubDate><guid>http://www.aygfsteel.com/sitinspring/archive/2007/12/03/165006.html</guid><wfw:comment>http://www.aygfsteel.com/sitinspring/comments/165006.html</wfw:comment><comments>http://www.aygfsteel.com/sitinspring/archive/2007/12/03/165006.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/sitinspring/comments/commentRss/165006.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/sitinspring/services/trackbacks/165006.html</trackback:ping><description><![CDATA[     摘要: 本文分析了java.util.ConcurrentModificationException出现的原因及处置办法.  <a href='http://www.aygfsteel.com/sitinspring/archive/2007/12/03/165006.html'>阅读全文</a><img src ="http://www.aygfsteel.com/sitinspring/aggbug/165006.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/sitinspring/" target="_blank">如坐春风</a> 2007-12-03 21:04 <a href="http://www.aygfsteel.com/sitinspring/archive/2007/12/03/165006.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> Ö÷Õ¾Ö©Öë³ØÄ£°å£º <a href="http://" target="_blank">¸·ÐÂ</a>| <a href="http://" target="_blank">¼ÎÀèÏØ</a>| <a href="http://" target="_blank">ËÉÑôÏØ</a>| <a href="http://" target="_blank">»³¼¯ÏØ</a>| <a href="http://" target="_blank">¼ÎÓãÏØ</a>| <a href="http://" target="_blank">Äþ°²ÊÐ</a>| <a href="http://" target="_blank">³¤ÄþÏØ</a>| <a href="http://" target="_blank">¿â¶ûÀÕÊÐ</a>| <a href="http://" target="_blank">ÇìÔÆÏØ</a>| <a href="http://" target="_blank">É«´ïÏØ</a>| <a href="http://" target="_blank">µÇúÏØ</a>| <a href="http://" target="_blank">ÓÀ¼ÃÊÐ</a>| <a href="http://" target="_blank">ÈÙ³ÉÊÐ</a>| <a href="http://" target="_blank">ÕØ¶«ÊÐ</a>| <a href="http://" target="_blank">̨ÖÝÊÐ</a>| <a href="http://" target="_blank">°ÍÑåÄ×¶ûÊÐ</a>| <a href="http://" target="_blank">ÐÂÖñÊÐ</a>| <a href="http://" target="_blank">ʯ×ìɽÊÐ</a>| <a href="http://" target="_blank">ÎÄÉ½ÏØ</a>| <a href="http://" target="_blank">ËçÑôÏØ</a>| <a href="http://" target="_blank">½òÊÐÊÐ</a>| <a href="http://" target="_blank">áÓãôÏØ</a>| <a href="http://" target="_blank">·áÌ¨Çø</a>| <a href="http://" target="_blank">×ÔÖÎÏØ</a>| <a href="http://" target="_blank">ÐÂÃÜÊÐ</a>| <a href="http://" target="_blank">äµÔ´ÏØ</a>| <a href="http://" target="_blank">±¦ÐËÏØ</a>| <a href="http://" target="_blank">¶«ÄþÏØ</a>| <a href="http://" target="_blank">ÓñÁÖÊÐ</a>| <a href="http://" target="_blank">ÃÅÍ·¹µÇø</a>| <a href="http://" target="_blank">ÃáÄþÏØ</a>| <a href="http://" target="_blank">ÌìÃÅÊÐ</a>| <a href="http://" target="_blank">±¦ÛæÇø</a>| <a href="http://" target="_blank">ÄþÏçÏØ</a>| <a href="http://" target="_blank">°²ÔóÏØ</a>| <a href="http://" target="_blank">Çà¸ÔÏØ</a>| <a href="http://" target="_blank">¶¨ÄÏÏØ</a>| <a href="http://" target="_blank">ÑôÐÂÏØ</a>| <a href="http://" target="_blank">µÂÑôÊÐ</a>| <a href="http://" target="_blank">½ÒÑôÊÐ</a>| <a href="http://" target="_blank">½­ÃÅÊÐ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>