📄 index.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML><HEAD><TITLE>Working with XML</TITLE></HEAD><BODY BGCOLOR="white"><table width="100%"> <tr> <td align=left height="26"> <img src="images/dim_PreviousArrow.gif" width=26 height=26 align=bottom border=0 alt="Previous | "><a href="overview/index.html"><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><imgsrc="images/dim_Top.gif" width=26 height=26 align=bottom border=0 alt="Top | "> </td> <td align=right height="26"><strong><em><a href="index.html">Top</a></em></strong> <a href="TOC.html"><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><p> <h1> Working with XML <img src="images/xml_TOP.gif" width="26" height="26"><br> <font size="5" color="#CC6600">The Java API for Xml Parsing (JAXP) Tutorial</font></h1><h5>by <a href="info/bios.html#ericarms">Eric Armstrong</a></h5><p> <blockquote> <blockquote> <hr> <strong>Notes:</strong> <br> See <a href="prjxdiff/index.html"><strong>Differences between the JAXP and Project X Tutorials</strong></a> for pages that show the changes to the overview and SAX pages for JAXP.<br> <i><b>[Version 2, Update 5 -- 13 Jul 2000]</b></i> <hr> </blockquote> This<strong></strong> tutorial covers the following topics: <p> <a href="overview/index.html"> <img src=images/xmlIcon.gif align=left width=20 height=20 border=0><strong>Part I: Understanding XML and the Java XML APIs</strong></a> explains the basics of XML and gives you a guide to the acronyms associated with it. It also provides an overview of the Java<sup><font size="1">TM</font></sup> XML APIs you can use to manipulate XML-based data. To focus on XML with a minimum of programming, follow <a href="#XmlThread">The XML Thread</a>, below. <p> <a href="sax/index.html"> <img src=images/xmlIcon.gif align=left width=20 height=20 border=0> <strong>Part II: Serial Access with the Simple API for XML (SAX)</strong></a> tells you how to read an XML file sequentially, and walks you through the callbacks the parser makes to event-handling methods you supply. <p> <a href="dom/index.html"> <img src=images/xmlIcon.gif align=left width=20 height=20 border=0><strong>Part III: XML and the Document Object Model (DOM)</strong></a> explains the structure of DOM, shows how to use it in a JTree, and shows how to create a hierarchy of objects from an XML document so you can randomly access it and modify its contents. This is also the API you use to write an XML file after creating a tree of objects in memory. <p><a href="TOC.html#addl"><img src=images/xmlIcon.gif align=left width=20 height=20 border=0><strong>Additional Information</strong></a> contains a description of the character encoding schemes used in the Java platform and pointers to any other information that is relevant to, but outside the scope of, this tutorial. <h3></h3> <h3><a name="XmlThread"></a>The XML Thread</h3> <p>Scattered throughout the tutorial there are a number of sections devoted more to explaining the basics of XML than to programming exercises. They are listed here so as to form an XML thread you can follow without covering the entire programming tutorial: <ul> <li><a href="overview/1_xml.html">A Quick Introduction to XML</a></li> <li><a href="sax/1_write.html">Writing a Simple XML File</a></li> <li> <dl> <dt><a href="sax/4_refs.html">Substituting and Inserting Text</a></dt> </dl> </li> <li><a href="sax/5a_dtd.html">Defining a Document Type</a></li> <li><a href="sax/5c_dtd.html">Defining Attributes and Entities</a></li> <li><a href="sax/5d_dtd.html">Referencing Binary Entities</a></li> <li><a href="sax/7a_pe.html">Defining Parameter Entities</a></li> <li><a href="overview/4_design.html">Designing an XML Document</a></li> </ul></blockquote><hr size=4><p> <table width="100%"> <tr> <td align=left> <img src="images/dim_PreviousArrow.gif" width=26 height=26 align=bottom border=0 alt="Previous | "><a href="overview/index.html"><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><imgsrc="images/dim_Top.gif" width=26 height=26 align=bottom border=0 alt="Top | "> </td> <td align=right><strong><em><a href="index.html">Top</a></em></strong> <a href="TOC.html"><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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -