On Tue, 20 Dec 2005, <[EMAIL PROTECTED]> wrote:

> better deal with elements that don't have a namespace URI

This is for the case where the task tells DOMElementWriter to qualify
elements with namespaces but passes in a DOM tree with elements that
don't have a namespace URI associated with them.

Is

> +    private static String getNamespaceURI(Node n) {
> +        String uri = n.getNamespaceURI();
> +        if (uri == null) {
> +            // FIXME: Is "No Namespace is Empty Namespace" really OK?
> +            uri = "";
> +        }
> +        return uri;
>      }

the correct thing to do?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to