Index: D:/home/xfire-1.2.1/xfire-core/src/main/org/codehaus/xfire/wsdl11/builder/WSDLBuilder.java =================================================================== --- D:/home/xfire-1.2.1/xfire-core/src/main/org/codehaus/xfire/wsdl11/builder/WSDLBuilder.java (revision 1938) +++ D:/home/xfire-1.2.1/xfire-core/src/main/org/codehaus/xfire/wsdl11/builder/WSDLBuilder.java (working copy) @@ -139,12 +139,10 @@ Attr a = (Attr) attributes.item(i); String nodeName = a.getNodeName(); String name = a.getName(); - if (("xmlns".equals(nodeName) || - nodeName.startsWith("xmlns:") || - "xmlns".equals(a.getPrefix()) || - (name != null && name.startsWith("xmlns"))) - && a.getNodeValue().equals(SoapConstants.XSD)) - root.removeAttribute(a.getNodeName()); + String prefix = a.getPrefix(); + if (("xmlns".equals(nodeName) || nodeName.startsWith("xmlns:") || + "xmlns".equals(a.getPrefix()) || (name != null && name.startsWith("xmlns")))) + root.removeAttribute(nodeName); } Schema uee = new SchemaImpl();