Oracle8i Application Developer's Guide - XML
Release 3 (8.1.7)

Part Number A86030-01

Library

Solution Area

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

XDK for Java: Specifications and Cheat Sheets, 7 of 15


Oracle XML Parser V1 and V2

Version 2 of the XML Parser for Java, besides incorporating an XSL-T processor, has been re-architected from version 1. This has resulted in a number of changes to the class names especially those that support Namespaces. The following summarizes changes you have to take into account when converting code from v1 to v2.


Note:

This summary is based upon XML Parser versions v1.0.1.4 as v1 and v2.0.0.0 as v2. 


NEW CLASS STRUCTURE

oracle.xml.parser package has been renamed to oracle.xml.parser.v2.

The following are new interfaces:

The following interfaces have been removed:

The following are new classes in v2:

Within this package the classes have been reorganized as follows:

Table C-3 XML Parser for Java: Classes Reoganization and Changes
Version 1  Version 2 

Class Reorganization 

 

XMLParser 

  • XMLParser (includes methods applicable to DOM and SAX access),

  • DOMParser (includes methods specific to DOM access),

  • SAXParser (includes methods specific to SAX access)

 

NSDocumentHandler 

XMLDocumentHandler 

NSAttr 

XMLAttr (supports Namespace, NSAttr interface has been removed) 

NSAttributeList 

SAXAttrList (includes methods in NSAttributeList and org.xml.sax.AttributeList) 

NSElement 

XMLElement (supports Namespace, NSElelement interface removed) 

PUBLIC CLASS / VARIABLE / CONSTRUCTOR / METHOD CHANGES 

 

AttrDecl 

 

getName() 

<eliminated> Use XMLNode.getNodeName 

getPresence() 

getAttrPresence() 

getType() 

getAttrType() 

getValues() 

getEnumerationValues() 

ElementDecl 

 

ASTERISK 

Rserved for future implementation. 

COMMA 

Rserved for future implementation. 

ELEMENT 

Rserved for future implementation. 

OR 

Rserved for future implementation. 

PLUS 

Rserved for future implementation. 

QMARK 

Rserved for future implementation. 

getParseTree() 

Rserved for future implementation. 

XMLAttr 

New constructor - XMLAttr(String, String, String, String)

New methods - cloneNode(), getPrefix() 

XMLElement 

New constructor - XMLElement(String, String, String)

New methods:

  • checkNamespace(String, String)

  • getElementsByTagName(String, String),

  • resolveNamespacePrefix(String)

 

XMLNode 

New method - transformNode() 

XMLText 

New method - getNodeValue() 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Solution Area

Contents

Index