My Oracle Support Banner

Redundant or multiple xmlns attributes generated in XML instance documents on IBM JDK (Doc ID 1459269.1)

Last updated on SEPTEMBER 12, 2022

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
IBM AIX on POWER Systems (64-bit)


Under certain circumstances when running with the IBM JDK, WebLogic may generate XML instance documents or document fragments that incorrectly have multiple xmlns attributes set for a given element, or may add redundant xmlns attributes to all elements in a document.  As an example, on deployment of a web service, schema data may be extracted from a WSDL and transformed into an XML document fragment.  This document fragment forms part of the overall service schema definition and may be used for SOAP payload schema validation if enabled.  If this schema document fragment contains multiple xmlns attribute definitions in a single element, the document is considered malformed, an exception is thrown, and the web service deployment will fail.  An example of an incorrectly formed element:

<schema xmlns=""  xmlns=""  xmlns:WL5G3N0=""  xmlns:soap="" xmlns:tns=  xmlns:xml=""  elementFormDefault="qualified"  targetNamespace="">

Note the multiple xmlns attribute definitions (the xmlns attribute is used to define the document fragment's default namespace).

The exception will be in the form:

org.xml.sax.SAXParseException:Attribute "xmlns" bound to namespace "" was already specified for element "schema".

The actual exception may vary in detail depending on the element involved.



 In WebLogic 10.3.4 and 10.3.5 on the IBM JDK platform the XML document TransformerFactory is set at runtime by the delegating instance WebLogicTransformerFactory to "".  On WebLogic 10.3.6 and later, WebLogicTransformerFactory no longer delegates specifically to "" but rather falls-back to "org.apache.xalan.processor.TransformerFactoryImpl".


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.