policy/src/main/java/org/apache/wss4j/policy/model/DOM2Writer.java [247:278]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                out.print(" xmlns:" + prefix + "=\"" + namespaceURI + '\"');
            }
        } else {
            prefix = node.getLocalName();
            namespaceURI = node.getNodeValue();
        }
        namespaceStack.add(namespaceURI, prefix);
    }

    /**
     * Normalizes and prints the given string.
     */
    public static void normalize(String s, PrintWriter fOut) {
        int len = (s != null) ? s.length() : 0;
        for (int i = 0; i < len; i++) {
            char c = s.charAt(i);
            switch (c) {
                case '<':
                    fOut.print("&lt;");
                    break;
                case '>':
                    fOut.print("&gt;");
                    break;
                case '&':
                    fOut.print("&amp;");
                    break;
                case '"':
                    fOut.print("&quot;");
                    break;
                default:
                    fOut.print(c);
                    break;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ws-security-common/src/main/java/org/apache/wss4j/common/util/DOM2Writer.java [244:275]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                out.print(" xmlns:" + prefix + "=\"" + namespaceURI + '\"');
            }
        } else {
            prefix = node.getLocalName();
            namespaceURI = node.getNodeValue();
        }
        namespaceStack.add(namespaceURI, prefix);
    }

    /**
     * Normalizes and prints the given string.
     */
    public static void normalize(String s, PrintWriter fOut) {
        int len = (s != null) ? s.length() : 0;
        for (int i = 0; i < len; i++) {
            char c = s.charAt(i);
            switch (c) {
                case '<':
                    fOut.print("&lt;");
                    break;
                case '>':
                    fOut.print("&gt;");
                    break;
                case '&':
                    fOut.print("&amp;");
                    break;
                case '"':
                    fOut.print("&quot;");
                    break;
                default:
                    fOut.print(c);
                    break;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



