axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alick Buckley <Alick.Buck...@lansa.com.au>
Subject Axis2 1.3 - XMLConstants conflict
Date Tue, 26 Feb 2008 23:15:37 GMT
Hi Guys,

The jar file stax-api-1.0.1,jar contains classes that are also defined in
xml-api-1.3.03.jar

stax-api-1.0.1.jar

    javax/xml/XMLConstants.class
    javax/xml/namespace/NamespaceContext.class
    javax/xml/namespace/QName.class

xml-apis-1.3.03.jar

    javax/xml/XMLConstants.class
    javax/xml/namespace/NamespaceContext.class
    javax/xml/namespace/QName.class
    javax/xml/namespace/QName$1.class

=================================================

The XMLConstants class shipped in stax-api-1.0.1.jar does not contain all of
the constant fields.

stax-api-1.0.1.jar

javax.xml.XMLConstants

	DEFAULT_NS_PREFIX
	XML_NS_PREFIX
	XML_NS_URI
	XMLNS_ATTRIBUTE
	XMLNS_ATTRIBUTE_NS_URI

=================================================

xml-apis-1.3.03.jar

javax.xml.XMLConstants

	NULL_NS_URI
	DEFAULT_NS_PREFIX
	XML_NS_URI
	XML_NS_PREFIX
	XMLNS_ATTRIBUTE_NS_URI
	XMLNS_ATTRIBUTE
	W3C_XML_SCHEMA_NS_URI
	W3C_XML_SCHEMA_INSTANCE_NS_URI
	W3C_XPATH_DATATYPE_NS_URI
	XML_DTD_NS_URI
	RELAXNG_NS_URI
	FEATURE_SECURE_PROCESSING

http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/XMLConstants.html

http://java.sun.com/javase/6/docs/api/javax/xml/XMLConstants.html

=================================================

java -cp .;xml-apis-1.3.03.jar Test > xml-api.txt

java -cp .;stax-api-1.0.1.jar Test > stax-api.txt

import java.lang.reflect.* ;

public class Test
{
    public static void main ( String[] args ) throws Exception
    {
        Class clazz = Class.forName ( "javax.xml.XMLConstants" ) ;

        Field[] fieldArray = clazz.getFields () ;

        for ( int i=0; i < fieldArray.length; i++ )
        {
            System.out.println ( fieldArray[i].getName () ) ;
        }
    }
}

=================================================

regards

> Alick Buckley
> 
> LANSA Research and Development
> LANSA Pty Ltd
> 
> Phone: +61289070243
> 
> http://www.lansa.com
> mailto:Alick.Buckley@lansa.com.au
> 
> 
> 
> 

Mime
View raw message