Oracle8i Application Developer's Guide - XML Release 3 (8.1.7) Part Number A86030-01 |
Library | Service | Contents | Index

Oracle XML Components and General FAQs, 7 of 18

## XML Transviewer Java Beans

Oracle XML Transviewer Java Beans are a set of XML components that constitute the "XML for Java Beans". These are used for Java applications or applets to view and transform XML documents.

They are visual and non-visual Java components that are integrated into Oracle JDeveloper to enable the fast creation and deployment of XML-based database applications. In this release, the following four beans are available:

- DOM Builder Bean. This wraps the Java XML (DOM) parser with a bean interface, allowing multiple files to be parsed at once (asynchronous parsing). By registering a listener, Java applications can parse large or successive documents having control return immediately to the caller.

- XML Source Viewer Bean. This bean extends JPanel by enabling the viewing of XML documents. It improves the viewing of XML and XSL files by color-highlighting XML and XSL syntax. This is useful when modifying an XML document with an editing application. Easily integrated with the DOM Builder Bean, it allows for pre and post parsing and validation against a specified DTD.

- XML Tree Viewer Bean. This bean extends JPanel by enabling viewing XML documents in tree form with the ability to expand and collapse XML parsers. It displays a visual DOM view of an XML document, enabling users to easily manipulate the tree with a mouse to hide or view selected branches.

- XSL Transformer Bean. This wraps the XSLT Processor with a bean interface and performs XSL transformations on an XML document based on an XSL stylesheet. It enables users to transform an XML document to almost any text-based format including XML, HTML and DDL, by applying an XSL stylesheet. When integrated with other beans, this bean enables an application or user to view the results of transformations immediately. This bean can also be used as the basis of a server-side application or servlet to render an XML document, such as an XML representation of a query result, into HTML for display in a browser.

- XML TransPanel Bean. This bean uses the other beans to create a sample application which can process XML files. This bean includes a file interface to load XML documents and XSL stylesheets. It uses the beans as follows:

  - Visual beans to view and optionally edit them

  - Transformer bean to apply the stylesheet to the XML document and view the output

As standard JavaBeans, they can be used in any graphical Java development environment, such as Oracle JDeveloper. The Oracle XML Transviewer Beans functionality is described in Chapter 3, "Oracle XML Components and General FAQs".

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index