??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧美999,国产精品爱久久久久久久,国产精品一区二区在线http://www.aygfsteel.com/yuanhuaming/category/2939.html无论是批评的Q赞扬的Q指着的都请EMAILl我Q你的徏议将是我前进的动? <A href=mailto:yuanhuaming@56.com >联系?lt;/A>zh-cnThu, 08 Mar 2007 21:43:44 GMTThu, 08 Mar 2007 21:43:44 GMT60XML回忆录-学不可以?/title><link>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/22/10728.html</link><dc:creator>疯流成?/dc:creator><author>疯流成?/author><pubDate>Mon, 22 Aug 2005 12:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/22/10728.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/10728.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/22/10728.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/10728.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/10728.html</trackback:ping><description><![CDATA[         考试l于考好?jin),休息了(jin)一天然后l以前未完成的struts框架学习(fn)。其实我知道怎么用config.xml。就是没搞懂Z么config.xml能够把MVCl联pv来,于是军_复习(fn)一下XML?BR>         XML 可用于各U不同的应用E序Q但其实质是QXML 是一U表C数据的方式? <HR> <BR>         1。文定义类型和命名I间<BR>1.1   XML的强大之处在于它可以自己定义标记Q但是需要一个文来定义标记的含义,q样解析器才能核查数据是否正。这个文档定义类型被成ؓ(f)QDocument Type DefinitionQDTD.<BR>比方说一个XML文g<BR><peson name="john" sex="male"/><BR>里有个sex属性,那性别的话除了(jin)男就是女?jin),解析器本来是不知道sex是性别的意思,那属性值怎么填都不会(x)错的。如果想让解析器知道sex值只能是h奻I那就要定义DTD<BR><!DOCTYPE 根元?[<BR>         <!ELEMENT peson EMPTY><BR>         <!ATTLIST peson<BR>            name CDDATA #REQUIRED<BR>            sex (MALE | FEMALE) #REQUIRED   <BR>         ><BR>]><BR>   我其实ƈ不喜ƢDTDQDTD和XML怎么看都很不舒服?BR><BR>1.2   命名I间   主要目的是ؓ(f)?jin)避免(元素名相同,内容不同Q。不q前面翻阅IBM资料库的时候一文章里写命名空间可能要被W3C取消掉了(jin)?BR> <HR>     <BR>            2。用CSS和XSL昄XML文<BR> 2.1      ׃XML主要是用来描q数据的Q所以在昄数据斚w没有HTML那么直接Q想要达到HTML那样的效果,需要CSS和XSL样式表?BR>?个例子一看就明白?<BR> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><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></SPAN><SPAN style="COLOR: #008000"><!--</SPAN><SPAN style="COLOR: #008000">引用一个外部CSS样式?/SPAN><SPAN style="COLOR: #008000">--></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"><?</SPAN><SPAN style="COLOR: #ff00ff">xml:stylesheet  type="text/css" href="test.css"</SPAN><SPAN style="COLOR: #0000ff">?></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008000"><!--</SPAN><SPAN style="COLOR: #008000">引用一个xsl样式?/SPAN><SPAN style="COLOR: #008000">--></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"><?</SPAN><SPAN style="COLOR: #ff00ff">xml:stylesheet  type="text/xsl" href="test.xsl"</SPAN><SPAN style="COLOR: #0000ff">?></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Resume</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">ID </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="1"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">John</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Sex</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">male</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Sex</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Age</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">22</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Age</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Skill</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">IT</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Skill</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">ID</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">ID </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="2"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">Tom</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Sex</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">male</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Sex</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Age</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">25</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Age</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">Skill</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">Worker</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Skill</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR> </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">ID</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">Resume</SPAN><SPAN style="COLOR: #0000ff">></SPAN></DIV></DIV><BR> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><SPAN style="COLOR: #800000"><!--test.css--><BR>Resume</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff"> block</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>id</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff"> block</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>Name</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff"> block</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000"> font-size</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">120%</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>Sex</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">red</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000"> text-indent</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">2em</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>Skill</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000"> display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">red</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000"> text-indent</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">2em</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>Age</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000"> display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">red</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000"> text-indent</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">2em</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR></SPAN></DIV></DIV> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><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></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:stylesheet </SPAN><SPAN style="COLOR: #ff0000">version</SPAN><SPAN style="COLOR: #0000ff">="1.0"</SPAN><SPAN style="COLOR: #ff0000"> xmlns:xsl</SPAN><SPAN style="COLOR: #0000ff">="http://www.w3.org/1999/XSL/Transform"</SPAN><SPAN style="COLOR: #ff0000"> xmlns:fo</SPAN><SPAN style="COLOR: #0000ff">="http://www.w3.org/1999/XSL/Format"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:template </SPAN><SPAN style="COLOR: #ff0000">match</SPAN><SPAN style="COLOR: #0000ff">="Resume"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">html</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">?/SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>        </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:for-each </SPAN><SPAN style="COLOR: #ff0000">select</SPAN><SPAN style="COLOR: #0000ff">="ID"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">font </SPAN><SPAN style="COLOR: #ff0000">color</SPAN><SPAN style="COLOR: #0000ff">="red"</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">xsl:value-of </SPAN><SPAN style="COLOR: #ff0000">select</SPAN><SPAN style="COLOR: #0000ff">="Name"</SPAN><SPAN style="COLOR: #0000ff">/></</SPAN><SPAN style="COLOR: #800000">font</SPAN><SPAN style="COLOR: #0000ff">><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">                <BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:value-of </SPAN><SPAN style="COLOR: #ff0000">select</SPAN><SPAN style="COLOR: #0000ff">="Sex"</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">                <BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:value-of </SPAN><SPAN style="COLOR: #ff0000">select</SPAN><SPAN style="COLOR: #0000ff">="Age"</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">                <BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">xsl:value-of </SPAN><SPAN style="COLOR: #ff0000">select</SPAN><SPAN style="COLOR: #0000ff">="Skill"</SPAN><SPAN style="COLOR: #0000ff">/><</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">br</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">        <BR>            </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">p</SPAN><SPAN style="COLOR: #0000ff">></</SPAN><SPAN style="COLOR: #800000">p</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>            </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">xsl:for-each</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>        </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">html</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR>    </SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">xsl:template</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">xsl:stylesheet</SPAN><SPAN style="COLOR: #0000ff">></SPAN></DIV></DIV> <P>XSL语法q是比较单的Q可以说一看就明白。两者比较一下,q是XSL直观Q灵zM点,不过q是不方便,q也是ؓ(f)什么HTMLq如此鼎盛的原因?BR>2.2   单介l下XSL的语?BR> 2.21     XSL中最重要的概念就是模板,它是׃个一个模板组成?BR>//定义模板<BR> <xsl:template match="/"><BR>....<BR> <xsl:apply-templates select="Resume" />//调用该模?有点象调用方法(Q;<BR>.....<BR> </xsl:template><BR>//Q方法定义)(j)<BR> <xsl:template match="Resume"><BR>......<BR> </xsl:template><BR><BR> 2.22   判断语法<BR>   循环语句<BR><xsl:for-each select="元素名称"></xsl:for-each><BR>   条g语句<BR><xsl:if test=""></xsl:if><BR><BR><BR></P> <HR> <P></P>  <P>             3。文档对象模型DOM和SAX</P> <P>3.1  DOM把文作Z个对象,通过~程的方式来查询或改变文?BR>DOM是XML在内存中的树(wi)状结构,当XML文g被蝲析器中解析后Q在内存中就建立?jin)一颗相应的?wi)?BR>3.2   什么是XML解析器?<BR>      解析是d文q将文分解够进行分析的元素的过E。XML解析器是WEB应用E序最基本勾践块。它是有2个基本APIl成QDOM 和SAX?BR>3.3   DOM的优点在于可以进行随机重复访问;~点是׃DOM是将XML文档全部载入内存中,所以对内存消耗很大,不适合比较大的XML文?BR>      <BR>3.4   SAX是可扩展标记语言的简单应用程序编E接口。由于SAX解析时不创徏昄数据l构Q因此它比DOM的效率更好?BR>不过它的~点是只能d前进?BR>   DOM和SAX的例子以后会(x)dq来Q所以这里就不写?jin)?/P> <P>所学到的知道用一张表联系hQ情看:(x)<BR><IMG src="http://photo.blogchina.com/data1/2005-8-24/001/134/277/98037/98037.jpg"><BR>学习(fn)W记只是单地叙述?jin)下XML基本内容有哪些技术,至于x深刻的理解XML。无它,多动手?/P><img src ="http://www.aygfsteel.com/yuanhuaming/aggbug/10728.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成?/a> 2005-08-22 20:33 <a href="http://www.aygfsteel.com/yuanhuaming/archive/2005/08/22/10728.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XML在JAVA中的应用学习(fn)W记Q-QDOM?/title><link>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/19/10540.html</link><dc:creator>疯流成?/dc:creator><author>疯流成?/author><pubDate>Fri, 19 Aug 2005 09:15:00 GMT</pubDate><guid>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/19/10540.html</guid><wfw:comment>http://www.aygfsteel.com/yuanhuaming/comments/10540.html</wfw:comment><comments>http://www.aygfsteel.com/yuanhuaming/archive/2005/08/19/10540.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuanhuaming/comments/commentRss/10540.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuanhuaming/services/trackbacks/10540.html</trackback:ping><description><![CDATA[<P>基本概念Q?BR>1。解析:(x)是d文档q将文分解够进行分析的元素的过E。XML解析器是WEB应用E序最基本勾践块?BR>2。DOM表示文对象模型。它定义?jin)一lJAVA接口Q用于创建,讉K和操作XML文的内部结构?BR>3。DOM的缺点就是由于整个文档必d内存中解析和存储Q所以对于大文则会(x)造成内存紧张?BR>4。在DOM中,文档被表CZؓ(f)?wi)。它的节点就是XML文中的元素或内宏V?/P> <P>-------------------------------------------------------example--------------------------------------------------------</P> <P>本例是将XML文档插入数据库的E序</P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG id=Codehighlighter1_0_451_Open_Image onclick="this.style.display='none'; Codehighlighter1_0_451_Open_Text.style.display='none'; Codehighlighter1_0_451_Closed_Image.style.display='inline'; Codehighlighter1_0_451_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_451_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_451_Closed_Text.style.display='none'; Codehighlighter1_0_451_Open_Image.style.display='inline'; Codehighlighter1_0_451_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_451_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">/**/</SPAN><SPAN id=Codehighlighter1_0_451_Open_Text><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">*<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *Moives.xml;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *---------------------------------------<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *<?xml version ="1.0"?><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> <movies><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  <movie><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   <name>《sorry,i love you?lt;/name><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    <producter>KBS</producter><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   <actor>林秀?lt;/actor><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  </movie><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> </movies><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *-----------------------------------------<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *mysql.sql<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *-----------------------------------------<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *create table movies<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *Qname varchar(),<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *producter varchar(),<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *actor varchar()<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top> *-----------------------------------------<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #008000">*/</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>import javax.xml.parsers.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>import org.w3c.dom.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>import java.sql.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>import java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_560_2075_Open_Image onclick="this.style.display='none'; Codehighlighter1_560_2075_Open_Text.style.display='none'; Codehighlighter1_560_2075_Closed_Image.style.display='inline'; Codehighlighter1_560_2075_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_560_2075_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_560_2075_Closed_Text.style.display='none'; Codehighlighter1_560_2075_Open_Image.style.display='inline'; Codehighlighter1_560_2075_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> test</SPAN><SPAN id=Codehighlighter1_560_2075_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_560_2075_Open_Text><SPAN style="COLOR: #000000">{ <BR><IMG id=Codehighlighter1_602_2073_Open_Image onclick="this.style.display='none'; Codehighlighter1_602_2073_Open_Text.style.display='none'; Codehighlighter1_602_2073_Closed_Image.style.display='inline'; Codehighlighter1_602_2073_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_602_2073_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_602_2073_Closed_Text.style.display='none'; Codehighlighter1_602_2073_Open_Image.style.display='inline'; Codehighlighter1_602_2073_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top> </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_602_2073_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_602_2073_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  String name</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  String producter</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  String actor</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG id=Codehighlighter1_675_2014_Open_Image onclick="this.style.display='none'; Codehighlighter1_675_2014_Open_Text.style.display='none'; Codehighlighter1_675_2014_Closed_Image.style.display='inline'; Codehighlighter1_675_2014_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_675_2014_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_675_2014_Closed_Text.style.display='none'; Codehighlighter1_675_2014_Open_Image.style.display='inline'; Codehighlighter1_675_2014_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN id=Codehighlighter1_675_2014_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_675_2014_Open_Text><SPAN style="COLOR: #000000">{   <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   File f</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> File(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">c:/Movies.xml</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>                                                </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">定义?jin)工厂APIQ允许应用程序获得生成DOM对象?wi)的解析?/SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">   DocumentBuilderFactory dbf</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">DocumentBuilderFactory.newInstance();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   DocumentBuilder db</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">dbf.newDocumentBuilder();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   Document d</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">db.parse(f);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   NodeList list</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">d.getElementsByTagName(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">movie</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">匚w元素movie</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_1039_1339_Open_Image onclick="this.style.display='none'; Codehighlighter1_1039_1339_Open_Text.style.display='none'; Codehighlighter1_1039_1339_Closed_Image.style.display='inline'; Codehighlighter1_1039_1339_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1039_1339_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1039_1339_Closed_Text.style.display='none'; Codehighlighter1_1039_1339_Open_Image.style.display='inline'; Codehighlighter1_1039_1339_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">   </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000"> i</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;i</SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">list.getLength();i</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">)</SPAN><SPAN id=Codehighlighter1_1039_1339_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1039_1339_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    Element n</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">(Element)list.item(i);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    name</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">n.getElementsByTagName(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">name</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">).item(</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">).getFirstChild().getNodeValue();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    producter</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">n.getElementsByTagName(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">producter</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">).item(</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">).getFirstChild().getNodeValue();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    actor</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">n.getElementsByTagName(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">actor</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">).item(</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">).getFirstChild().getNodeValue(); <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>   }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   String sql1</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">insert into movies values('</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </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">','</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> producter </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">','</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> actor </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">')</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   String sql2</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">select *from movies</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   Class.forName(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">com.mysql.jdbc.Driver</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">注册驱动E序</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">   <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   String url </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">jdbc:mysql://localhost:3306/test</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;  <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   Connection con</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">DriverManager.getConnection(url,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">root</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">hotman</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">q接Mysql</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">   System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println (</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">success!!</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   Statement st</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">con.createStatement();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   st.executeUpdate(sql1);</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">更新记录<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">查询记录</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">   ResultSet rs</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">st.executeQuery(sql2);<BR><IMG id=Codehighlighter1_1838_1994_Open_Image onclick="this.style.display='none'; Codehighlighter1_1838_1994_Open_Text.style.display='none'; Codehighlighter1_1838_1994_Closed_Image.style.display='inline'; Codehighlighter1_1838_1994_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1838_1994_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1838_1994_Closed_Text.style.display='none'; Codehighlighter1_1838_1994_Open_Image.style.display='inline'; Codehighlighter1_1838_1994_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>   </SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">(rs.next())</SPAN><SPAN id=Codehighlighter1_1838_1994_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_1838_1994_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println (rs.getString(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">name</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)); <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println (rs.getString(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">producter</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)) ;<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println (rs.getString(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">actor</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">));  <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>   }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   con.close();<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_2036_2067_Open_Image onclick="this.style.display='none'; Codehighlighter1_2036_2067_Open_Text.style.display='none'; Codehighlighter1_2036_2067_Closed_Image.style.display='inline'; Codehighlighter1_2036_2067_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2036_2067_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2036_2067_Closed_Text.style.display='none'; Codehighlighter1_2036_2067_Open_Image.style.display='inline'; Codehighlighter1_2036_2067_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">(Exception e)</SPAN><SPAN id=Codehighlighter1_2036_2067_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 src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_2036_2067_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>   System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println (e);<BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  <BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top> }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P> </P> <P> </P><img src ="http://www.aygfsteel.com/yuanhuaming/aggbug/10540.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuanhuaming/" target="_blank">疯流成?/a> 2005-08-19 17:15 <a href="http://www.aygfsteel.com/yuanhuaming/archive/2005/08/19/10540.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>