XML Toolkit - Oracle

[Pages:18]XML Toolkit

Release 4.5.2

SeeBeyond Proprietary and Confidential

The information contained in this document is subject to change and is updated periodically to reflect changes to the applicable software. Although every effort has been made to ensure the accuracy of this document, SeeBeyond Technology Corporation (SeeBeyond) assumes no responsibility for any errors that may appear herein. The software described in this document is furnished under a License Agreement and may be used or copied only in accordance with the terms of such License Agreement. Printing, copying, or reproducing this document in any fashion is prohibited except in accordance with the License Agreement. The contents of this document are designated as being confidential and proprietary; are considered to be trade secrets of SeeBeyond; and may be used only in accordance with the License Agreement, as protected and enforceable by law. SeeBeyond assumes no responsibility for the use or reliability of its software on platforms that are not supported by SeeBeyond.

e*Gate, e*Insight, e*Way, e*Xchange, e*Xpressway, eBI, iBridge, Intelligent Bridge, IQ, SeeBeyond, and the SeeBeyond logo are trademarks and service marks of SeeBeyond Technology Corporation. All other brands or product names are trademarks of their respective companies.

? 1999?2002 by SeeBeyond Technology Corporation. All Rights Reserved. This work is protected as an unpublished work under the copyright laws.

This work is confidential and proprietary information of SeeBeyond and must be maintained in strict confidence.

Version 20020614103859.

XML Toolkit

2

SeeBeyond Proprietary and Confidential

Contents

Contents

List of Figures

8

List of Tables

10

Chapter 1

Introduction

11

Document Purpose and Scope

11

Intended Audience

11

Organization of Information

12

Writing Conventions

13

Supporting Documents

14

SeeBeyond Web Site

15

Chapter 2

XML Toolkit Summary

16

Introduction to XML

16

DTD Overview

16

XML Schema Overview

17

XML Toolkit Versions

17

System Requirements

17

System Requirements

17

External System Requirements

18

XML Schema Standards

18

Windows Installation

19

Pre-installation

19

Installation Procedure

19

XML Toolkit

3

SeeBeyond Proprietary and Confidential

Contents

Chapter 3

Java XML Toolkit Overview

21

Java XML Toolkit Description

21

DTD Builder

21

XML Schema Builder

21

Java Mapping

22

Identifier Mapping

22

Property Mapping

22

Support for XML Messages in EBCDIC

23

Unmarshalling XML Messages in EBCDIC

23

Marshalling XML Messages in EBCDIC

24

Chapter 4

Java DTD Builder

25

Using the DTD Builder

25

DTD Builder Data Mapping

29

Mapping of Element Declarations

29

Mapping of Attribute Types

30

Builder Capabilities

30

Supported Features

30

Limitations

31

Parent Nodes

31

Root Nodes

32

Chapter 5

Java XML Schema Builder

33

Using the XML Schema Builder

33

XML Schema Versions: Java

36

XML Schema Builder Data Mapping

37

Generated Classes

37

Java Packages

37

Mapping of complexType Data Types

37

Mapping of simpleType Data Types (W3C 2001 Specifications)

38

Standard Java Mapping

38

Additional Java Mapping

40

Mapping of simpleType Data Types (W3C 2000 Specifications)

43

Standard Java Classes

43

Additional Java Mapping

44

Mapping of Elements

47

Builder Capabilities

47

Supported Features

47

XML Toolkit

4

SeeBeyond Proprietary and Confidential

Contents

Unsupported Features

47

Chapter 6

Java Conversion Examples

49

DTD Examples

49

Book Sample

49

DTD File Before Using the Builder

49

Converted File in the ETD Editor Window

50

Personnel Record Sample

50

DTD File Before Using the Builder

50

Converted File in the ETD Editor Window

52

Namespace Sample

52

DTD File Before Using the Builder

52

Converted File in the ETD Editor Window

53

Mixed Sample

53

DTD File Before Using the Builder

53

Converted File in the ETD Editor Window

54

Document Sample

54

DTD File Before Using the Builder

54

Converted File in the ETD Editor Window

56

XML Schema Example

56

XML Schema File Before Using the Builder

57

Converted File in the ETD Editor Window

58

Chapter 7

Registry API for XML Schema Metadata

59

Registry API for XML Schemas: Overview

59

Package Contents, Setup, and APIs

60

Contents

60

System Preparation

60

System Setup

61

Using the APIs

61

connect()

62

listEgateSchemas()

62

listEgateEventTypes()

63

listXMLSchemaFiles()

63

close()

64

getXMLSchemaData()

64

getXMLSchemaFileName()

65

Sample Implementations

65

SchemaListRetrieve.java

66

EventsRetrieve.java

66

GetXMLSchemaFile.java

67

XML Toolkit

5

SeeBeyond Proprietary and Confidential

Contents

Chapter 8

Monk DTD Converter

Monk XML Toolkit: Introduction

Using the Monk DTD Converter Operational Overview

Feature Summary Implementation

Using the XML DTD Converter Command-line Arguments Understanding the ETD Structure

XML Element without Sub-elements XML Element with Sub-elements XML Attribute Using the ETD Editor Mapping Mapping for Elements Mapping for Sub-elements Mapping for Attributes Mapping for Occurrence Sample Conversion

Chapter 9

Monk XML Schema Converter

XML Schemas and Monk: Introduction XML Schema Versions: Monk How Monk XML Schema Converter Works Feature Summary Implementation

Using XML Schema Command-line Arguments Understanding the ETD Structure

XML Element without Sub-elements XML Element with Sub-elements XML Attribute Using the ETD Editor XML Schema Implementation Examples Explanation

Chapter 10

XSLT Collaboration Service

Introduction

XML Toolkit

6

69

69

69 71

71 72

72 74 75 77 78 78 79 80 80 81 81 82 82

88

88 88 89 90 91

91 92 93 94 95 96 96 97 98

100

100

SeeBeyond Proprietary and Confidential

Contents

Requirements Architecture

Creating XSLT Collaboration Rules

Committing .xsl Files to the Registry Creating a Collaboration Rule

Implementing the XSLT Collaboration Service Sample Conversion

Chapter 11

Monk DTD Generator

Introduction Implementation

Using the XML DTD Generator Creating DTDs Using the Monk DTD Generator

Chapter 12

$event->xml Monk Function

Introduction How the $event->xml Monk Function Works

$event->xml

$event->xml Example

Chapter 13

Monk Capabilities and Troubleshooting

Capabilities

Monk DTD Converter Monk DTD Generator

Monk DTD Converter Troubleshooting

Index

100 100

101

101 103

106 106

109

109 110

110 110

113

113 113

115

116

119

119

119 119

120

123

XML Toolkit

7

SeeBeyond Proprietary and Confidential

List of Figures

List of Figures

Figure 1 DTD Wizard -- Introduction

26

Figure 2 DTD Wizard -- Step 1

27

Figure 3 DTD Wizard -- Step 2

28

Figure 4 XSD Wizard -- Introduction

34

Figure 5 XSD Wizard -- Step 1

34

Figure 6 XSD Wizard -- Step 2

35

Figure 7 Book DTD in ETD Editor Window

50

Figure 8 Personnel Record DTD in ETD Editor Window

52

Figure 9 Namespace DTD in ETD Editor Window

53

Figure 10 Mixed DTD in ETD Editor Window

54

Figure 11 Document DTD in ETD Editor Window

56

Figure 12 XML Schema Purchase Order File in ETD Editor Window

58

Figure 13 DTD-to-ETD Conversion Process

70

Figure 14 XML Toolkit Components in Sample Configuration

71

Figure 15 Build an Event Type Definition Dialog Box -- 1

73

Figure 16 Build an Event Type Definition Dialog Box -- 2

74

Figure 17 XML Example

77

Figure 18 XML Element without Sub-elements

77

Figure 19 XML Element with Sub-elements

78

Figure 20 XML Attribute

78

Figure 21 Node Properties Dialog Box

79

Figure 22 Monk XML Schema Conversion Process

89

Figure 23 Build an Event Type Definition Dialog Box -- 3

91

Figure 24 Build an Event Type Definition Dialog Box -- 4

92

Figure 25 XML Sample

94

Figure 26 XML Element without Sub-elements

95

Figure 27 XML Element with Sub-elements

95

Figure 28 XML Attribute

96

XML Toolkit

8

SeeBeyond Proprietary and Confidential

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download