码迷,mamicode.com
首页 > 其他好文 > 详细

Lesson: Introduction to JAXP

时间:2014-10-12 19:30:48      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:des   style   io   os   ar   java   for   sp   on   

The Java API for XML Processing (JAXP) is for processing XML data using applications written in the Java programming language. JAXP leverages the parser standards Simple API for XML Parsing (SAX) and Document Object Model (DOM) so that you can choose to parse your data as a stream of events or to build an object representation of it. JAXP also supports the Extensible Stylesheet Language Transformations (XSLT) standard, giving you control over the presentation of the data and enabling you to convert the data to other XML documents or to other formats, such as HTML. JAXP also provides namespace support, allowing you to work with DTDs that might otherwise have naming conflicts. Finally, as of version 1.4, JAXP implements the Streaming API for XML (StAX) standard.

Designed to be flexible, JAXP allows you to use any XML-compliant(顺从的;服从的;应允的) parser from within your application. It does this with what is called a pluggability(可插性) layer, which lets you plug in an implementation of the SAX or DOM API. The pluggability layer also allows you to plug in an XSL processor, letting you control how your XML data is displayed.

Lesson: Introduction to JAXP

标签:des   style   io   os   ar   java   for   sp   on   

原文地址:http://www.cnblogs.com/ghgyj/p/4020822.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!