public void addDeclaredNamespace(Namespace ns) {
        if (ns == null)
            throw new IllegalArgumentException();

        if (_dns == null)