InfoCenter Home >
3: Migration overview >
3.3: Migrating APIs and specifications >
3.3.4: Migrating to supported XML API

3.3.4: Migrating to supported XML API

If your XML applications use XML for Java API Version 1.1.x, you must migrate them to API Version 2.0.x.

Although there are inherent performance improvements in later versions of the XML for Java API, you can gain additional performance by explicitly using nonvalidating parsers in application environments where the data can be trusted.

Issues for migrating from XML for Java API Version 1.1.x

The following table summarizes the methods of the API Version 1.1.x class com.ibm.xml.parser.Parser that are not supported or implemented in the API Version 2.0.x:

Method Status
addNoRequiredAttributeHandler Not supported. Throws java.lang.IllegalArgumentException.
getReaderBufferSize Not supported. Throws java.lang.IllegalArgumentException.
setErrorNoByteMark Not supported. Throws java.lang.IllegalArgumentException.
setProcessExternalDTD Not implemented.
setReaderBufferSize Not supported. Throws java.lang.IllegalArgumentException.
setWarningNoDoctypeDecl Not implemented.
setWarningNoXMLDecl Not implemented.
stop Not implemented.

The following table summarizes Version 1.1.x methods that are deprecated in Version 2.0.x of the com.ibm.xml.parser package:

Deprecated method Recommendation
EntityDecl.getName() Use getNodeName().
EntityDecl.getNDATAType() Use getNotationName().
EntityDecl.isNDATA() Do not use.
Namespace.getUniversalName() See createExpandedName().
Parent.addElement(Child) Use appendChild().
TXAttribute.getUniversalName() Use createExpandedName().
TXAttribute.setAttribute(TXAttribute) Use setAttributeNode().
TXElement.getName() Use getNodeName() or getTagName().
TXElement.getUniversalName() Use createExpandedName().
TXElement.isEmpty() See hasChildNodes().
TXNotation.getName() Use getNodeName().
TXNotation.setName(String) Do not use.
TXText.splice(Element, int, int) Do not use.

Go to previous article: Tips for migrating JSP .91 files to JSP 1.0 Go to next article: Migrating to supported user profile APIs

 

 
Go to previous article: Tips for migrating JSP .91 files to JSP 1.0 Go to next article: Migrating to supported user profile APIs