⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 XML_JAVA指南 书籍语言: 简体中文 书籍类型: 程序设计 授权方式: 免费软件 书籍大小: 377 KB
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><title>Manipulating Contents with DOM</title><style type="text/css"><!----></style></head><body BGCOLOR="#ffffff"><table width="100%">  <tr>     <td align=left> <ahref="1_read.html"><img src="../images/PreviousArrow.gif" width=26 height=26 align=bottom border=0 alt="Previous | "><img src="../images/NextArrow.gif" width=26 height=26 align=bottom border=0 alt="Next | "></a><a href="../alphaIndex.html"><img src="../images/xml_IDX.gif" width=26 height=26 align=bottom border=0 alt="Index | "></a><a href="../TOC.html"><imgsrc="../images/xml_TOC.gif" width=26 height=26 align=bottom border=0 alt="TOC | "></a><a href="../index.html"><imgsrc="../images/xml_Top.gif" width=26 height=26 align=bottom border=0 alt="Top | "></a>     </td>    <td align=right><strong><em><a href="index.html">Top</a></em></strong> <a href="../TOC.html#intro"><strong><em>Contents</em></strong></a>       <a href="../alphaIndex.html"><strong><em>Index</em></strong></a> <a href="../glossary.html"><strong><em>Glossary</em></strong></a>     </td>  </tr></table><p>   <center>    <IMG SRC="../images/shoeline2.gif" ALIGN="BOTTOM" BORDER="0" WIDTH="202"    HEIGHT="25" NATURALSIZEFLAG="3"> <IMG SRC="../images/shoeline2.gif" ALIGN="BOTTOM" BORDER="0" WIDTH="202"    HEIGHT="25" NATURALSIZEFLAG="3">   </center><blockquote>   <blockquote>     <hr size=4>  </blockquote></blockquote><p> <h2> Part III: XML and the Document Object Model (DOM)</h2><table width="40%" border="1" align="right">  <tr>     <td>       <div align="center"><b><i>Link Summary</i></b></div>    </td>  </tr>  <tr>     <td>       <dl>         <dt><b><i>Glossary Terms</i></b></dt>      </dl>      <dl>         <dd><a href="../glossary.html#DOM">DOM</a>, <a href="../glossary.html#element">element</a>,           <a href="../glossary.html#SAX">SAX</a> </dd>      </dl>    </td>  </tr></table><p><b><i></i></b>In the SAX section of the tutorial, you wrote an XML file that   contains slides for a presentation. You then used the Simple API for XML (<a href="../glossary.html#SAX">SAX</a>)   API to echo the XML to your display. <p>In this section of the tutorial, you'll use the Document Object Model (<a href="../glossary.html#DOM">DOM</a>)   to build a small SlideShow application. You'll start by constructing a DOM and   inspecting it, then see how to write a DOM as an XML structure, display it in   a GUI, and manipulate the tree structure. <h3>Overview of the Document Object Model</h3><p>A Document Object Model is a garden-variety tree structure, where each node   contains one of the components from an XML structure. The two most common types   of nodes are <i><a href="../glossary.html#element">element</a> nodes</i> and   <i>text nodes</i>. Using DOM functions lets you create nodes, remove nodes,   change their contents, and traverse the node hierarchy. <h3>What You'll Learn</h3><p>In this section of the tutorial, you'll parse an existing XML file to construct   a DOM, display and inspect the DOM hierarchy, convert the DOM into a user-friendly   JTree, and explore the syntax of namespaces. You'll also create a DOM from scratch,   and see how to use some of the implementation-specific features in Sun's JAXP   reference implementation to convert an existing data set to XML. </p><p>This section of the tutorial covers the following topics: </p><dl>   <ol>    <li><a href="1_read.html">Generating a DOM from XML data</a></li>    <li><a href="2_anydata.html">Generating XML from an Arbitrary Data Structure</a></li>    <li>a) <a href="3_display.html">Displaying a DOM Hierarchy </a><br>      b) <a href="3b_display.html">Examining the Structure of a DOM</a></li>    <li> <a href="4_tree.html">Constructing a User-Friendly JTree from a DOM</a></li>    <li> <a href="5_create.html">Creating and Manipulating DOM</a></li>    <li> <a href="6_ns.html">Using Namespaces</a> </li>  </ol></dl><dl>  <dd>&nbsp;</dd></dl><blockquote>   <hr size=4></blockquote><p> <p> <table width="100%">  <tr>     <td align=left> <a href="../index.html"><img src="../images/PreviousArrow.gif" width=26 height=26 align=top border=0 alt="Previous | "></a><ahref="1_read.html"><img src="../images/NextArrow.gif" width=26 height=26 align=top border=0 alt="Next | "></a><a href="../alphaIndex.html"><img src="../images/xml_IDX.gif" width=26 height=26 align=top border=0 alt="Index | "></a><a href="../TOC.html"><imgsrc="../images/xml_TOC.gif" width=26 height=26 align=top border=0 alt="TOC | "></a><a href="../index.html"><imgsrc="../images/xml_Top.gif" width=26 height=26 align=top border=0 alt="Top | "></a>     </td>    <td align=right><strong><em><a href="index.html">Top</a></em></strong> <a href="../TOC.html#intro"><strong><em>Contents</em></strong></a>       <a href="../TOC.html#intro"><strong><em></em></strong></a> <a href="../alphaIndex.html"><strong><em>Index</em></strong></a>       <a href="../glossary.html"><strong><em>Glossary</em></strong></a></td>  </tr></table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -