没有合适的资源?快使用搜索试试~ 我知道了~
Oracle XML Developer's Kit Programmer's Guide 11g Release 2 (11
需积分: 5 0 下载量 131 浏览量
2023-06-18
15:23:58
上传
评论
收藏 3.49MB PDF 举报
温馨提示
试读
612页
Oracle XML Developer's Kit Programmer's Guide 11g Release 2 (11.2)-612
资源推荐
资源详情
资源评论
[1]
Oracle® XML Developer's Kit
Programmer's Guide
11g Release 2 (11.2)
E23582-06
December 2014
Oracle XML Developer's Kit Programmer's Guide, 11g Release 2 (11.2)
E23582-06
Copyright © 2001, 2014, Oracle and/or its affiliates. All rights reserved.
Primary Authors: Drew Adams, Lance Ashdown, Janis Greenberg, Jack Melnick, Sue Pelski
Contributing Authors: Steve Muench, Mark Scardina, Jinyu Wang
Contributors: Nipun Agarwal, Sivasankaran Chandrasekar, Dan Chiba, Steve Ding, Mark Drake, Bill
Han, Bhushan Khaladkar, Roza Leyderman, Valarie Moore, Ravi Murthy, Anguel Novoselsky, Helen
Slattery, Balu Sthanikam, Lu Sun, Asha Tarachandani, Tim Yu, Simon Wong, Kongyi Zhou
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it
on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users
are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and
agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and
adaptation of the programs, including any operating system, integrated software, any programs installed on
the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to
the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management
applications. It is not developed or intended for use in any inherently dangerous applications, including
applications that may create a risk of personal injury. If you use this software or hardware in dangerous
applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other
measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages
caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks
are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD,
Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced
Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content,
products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and
expressly disclaim all warranties of any kind with respect to third-party content, products, and services
unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its
affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of
third-party content, products, or services, except as set forth in an applicable agreement between you and
Oracle.
iii
Contents
Preface............................................................................................................................................................. xxix
Audience................................................................................................................................................... xxix
Documentation Accessibility................................................................................................................. xxix
Related Documents ................................................................................................................................. xxix
Conventions ............................................................................................................................................. xxx
What's New in the XDK?..................................................................................................................... xxxiii
Features Introduced in Oracle XML Developer's Kit 11g Release 1 (11.1).................................... xxxiii
Features Introduced in Oracle XDK 11g Release 2 (11.2) ................................................................ xxxiv
Features Changed in Oracle XDK 11g Release 2 (11.2).................................................................... xxxiv
1 Introduction to Oracle XML Developer's Kit
Overview of Oracle XML Developer's Kit (XDK).............................................................................. 1-1
XDK Components .................................................................................................................................... 1-3
XML Parsers........................................................................................................................................ 1-4
XSLT Processors ................................................................................................................................. 1-5
XML Schema Processors ................................................................................................................... 1-5
XML Class Generators....................................................................................................................... 1-6
XML Pipeline Processor .................................................................................................................... 1-6
XDK JavaBeans................................................................................................................................... 1-7
Oracle XML SQL Utility (XSU)......................................................................................................... 1-7
Handling or Representing an XML Document....................................................................... 1-8
Using XSU with an XML Class Generator .............................................................................. 1-8
TransX Utility...................................................................................................................................... 1-8
XSQL Pages Publishing Framework ............................................................................................... 1-9
Soap Services....................................................................................................................................... 1-9
XSLT Virtual Machine (XVM) .......................................................................................................... 1-9
XML Document Generation with the XDK Components ............................................................. 1-10
XML Document Generation with Java......................................................................................... 1-10
XML Document Generation with C ............................................................................................. 1-12
XML Document Generation with C++......................................................................................... 1-12
Development Tools and Frameworks for the XDK ........................................................................ 1-13
Oracle JDeveloper ........................................................................................................................... 1-14
User Interface XML (UIX) .............................................................................................................. 1-15
Oracle Reports ................................................................................................................................. 1-16
iv
Oracle XML Gateway ..................................................................................................................... 1-16
Oracle Data Provider for .NET...................................................................................................... 1-16
Installing the XDK ................................................................................................................................ 1-17
Part I XDK for Java
2 Unified Java API for XML
Overview of Unified Java API............................................................................................................... 2-1
Component Unification .......................................................................................................................... 2-1
Moving to the Unified Java API Model............................................................................................... 2-2
Java DOM APIs for XMLType Classes ........................................................................................... 2-2
Extension APIs.................................................................................................................................... 2-3
Document Creation Java APIs.......................................................................................................... 2-3
3 Getting Started with Java XDK Components
Installing Java XDK Components......................................................................................................... 3-1
Java XDK Component Dependencies .................................................................................................. 3-2
Setting Up the Java XDK Environment................................................................................................ 3-5
Setting Java XDK Environment Variables for UNIX..................................................................... 3-5
Testing the Java XDK Environment on UNIX ........................................................................ 3-5
Setting Java XDK Environment Variables for Windows.............................................................. 3-6
Testing the Java XDK Environment on Windows.................................................................. 3-7
Verifying the Java XDK Components Version................................................................................... 3-8
4 XML Parsing for Java
Introduction to the XML Parsing for Java ........................................................................................... 4-1
Prerequisites........................................................................................................................................ 4-1
Standards and Specifications............................................................................................................ 4-2
Large Node Handling........................................................................................................................ 4-2
XML Parsing in Java .......................................................................................................................... 4-3
DOM in XML Parsing........................................................................................................................ 4-4
DOM Creation ............................................................................................................................. 4-4
Scalable DOM ..................................................................................................................................... 4-4
Pluggable DOM Support ........................................................................................................... 4-5
Lazy Materialization................................................................................................................... 4-5
Configurable DOM Settings...................................................................................................... 4-5
SAX in the XML Parser...................................................................................................................... 4-5
JAXP in the XML Parser.................................................................................................................... 4-6
Namespace Support in the XML Parser.......................................................................................... 4-6
Validation in the XML Parser........................................................................................................... 4-8
Compression in the XML Parser...................................................................................................... 4-9
Using XML Parsing for Java: Overview............................................................................................... 4-9
Using the XML Parser for Java: Basic Process ............................................................................ 4-10
Running the XML Parser Demo Programs.................................................................................. 4-10
Using the XML Parser Command-Line Utility........................................................................... 4-13
Parsing XML with DOM...................................................................................................................... 4-13
v
Using the DOM API........................................................................................................................ 4-14
DOM Parser Architecture .............................................................................................................. 4-14
Performing Basic DOM Parsing............................................................................................. 4-15
Useful Methods and Interfaces ..................................................................................................... 4-17
Creating Scalable DOM.................................................................................................................. 4-19
Using Pluggable DOM ............................................................................................................ 4-19
Using Lazy Materialization .................................................................................................... 4-20
Using Configurable DOM Settings........................................................................................ 4-22
Performance Advantages to Configurable DOM Settings................................................. 4-24
Scalable DOM Applications ................................................................................................... 4-24
Performing DOM Operations with Namespaces ....................................................................... 4-24
Performing DOM Operations with Events.................................................................................. 4-26
Performing DOM Operations with Ranges................................................................................. 4-27
Performing DOM Operations with TreeWalker......................................................................... 4-28
Parsing XML with SAX ........................................................................................................................ 4-30
Using the SAX API.......................................................................................................................... 4-30
Performing Basic SAX Parsing...................................................................................................... 4-33
Performing Basic SAX Parsing with Namespaces...................................................................... 4-35
Performing SAX Parsing with XMLTokenizer ........................................................................... 4-36
Parsing XML with JAXP....................................................................................................................... 4-37
Using the JAXP API ........................................................................................................................ 4-37
Using the SAX API Through JAXP........................................................................................ 4-38
Using the DOM API Through JAXP ..................................................................................... 4-38
Transforming XML Through JAXP ....................................................................................... 4-39
Parsing with JAXP........................................................................................................................... 4-39
Performing Basic Transformations with JAXP ........................................................................... 4-41
Compressing XML................................................................................................................................. 4-42
Compressing and Decompressing XML from DOM ................................................................. 4-42
Compressing a DOM Object................................................................................................... 4-42
Decompressing a DOM Object............................................................................................... 4-43
Compressing and Decompressing XML from SAX ................................................................... 4-43
Compressing a SAX Object..................................................................................................... 4-44
Decompressing a SAX Object................................................................................................. 4-44
Tips and Techniques for Parsing XML ............................................................................................. 4-45
Extracting Node Values from a DOM Tree................................................................................. 4-45
Merging Documents with appendChild()................................................................................... 4-46
Parsing DTDs .................................................................................................................................. 4-47
Loading External DTDs........................................................................................................... 4-47
Caching DTDs with setDoctype.............................................................................................
4-48
Handling Character Sets with the XML Parser........................................................................... 4-50
Detecting the Encoding of an XML File on the Operating System................................... 4-50
Detecting the Encoding of XML Stored in an NCLOB Column........................................ 4-50
Writing an XML File in a Nondefault Encoding ................................................................. 4-51
Working with XML in Strings................................................................................................ 4-51
Parsing XML Documents with Accented Characters ......................................................... 4-52
Handling Special Characters in Tag Names ........................................................................ 4-52
剩余611页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 62
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功