The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
The Java API for XML Processing (JAXP) trail provides an introduction to Java API for XML Processing (JAXP) 1.4 technology, via examples of JAXP applications.Java API for XML Processing(JAXP)教程通过JAXP应用程序的示例介绍了Java API for XML Processing(JAXP)1.4技术。
To make full use of the information in the Java API for XML Processing (JAXP) Tutorial, you should have knowledge of the following technology:要充分利用Java API for XML Processing(JAXP)教程中的信息,您应该了解以下技术:
Some prior knowledge of DOM and SAX is assumed. 假设您对DOM和SAX有一定的了解。Only code that is specific to the JAXP API is examined in detail in this tutorial.本教程只详细研究了特定于JAXP API的代码。
➤ Introduction to JAXPJAXP简介 provides a brief description of the JAXP technology, including its purpose and principal features.简要介绍JAXP技术,包括其目的和主要功能。
➤ Simple API for XML简单应用程序接口 introduces a concept used in the JAXP technology, the Simple API for XML (SAX): when to use SAX, how to parse an XML file, how to implement SAX validation, how to run the SAX parser, and how to handle lexical events. 介绍JAXP技术中使用的一个概念,即XML的简单API(SAX):何时使用SAX,如何解析XML文件,如何实现SAX验证,如何运行SAX解析器,以及如何处理词法事件。Links for further information are provided.提供了更多信息的链接。
➤ Document Object Model文档对象模型 introduces the tree structure used by the Document Object Model (DOM) and shows you how to use the DOM functions to create nodes, remove nodes, change the contents of the nodes, and to traverse the node hierarchy.介绍文档对象模型(DOM)使用的树结构,并演示如何使用DOM函数创建节点、删除节点、更改节点内容以及遍历节点层次结构。
➤ Extensible Stylesheet Language Transformations可扩展样式表语言转换 includes information on how to write a Document Object Model as an XML file, and how to generate a DOM from an arbitrary data file in order to convert it to XML.包括有关如何将文档对象模型编写为XML文件的信息,以及如何从任意数据文件生成DOM以将其转换为XML的信息。
➤ Streaming API for XMLXML流式API focuses a streaming Java technology-based, event-driven, pull-parsing API for reading and writing XML documents. 重点介绍一个基于流式Java技术、事件驱动的拉式解析API,用于读取和写入XML文档。StAX enables you to create bidirectional XML parsers that are fast, relatively easy to program, and have a light memory footprint.StAX使您能够创建快速、相对容易编程、内存占用小的双向XML解析器。
➤ JAXP 1.5 and New PropertiesJAXP 1.5和新特性 introduces properties that have been added to 7u40 and JDK8.介绍已添加到7u40和JDK8的属性。
➤ Processing Limits处理限制 discusses JAXP implementation limits, including three that were added in 7u45.讨论JAXP实现限制,包括7u45中添加的三个限制。