Java XML Node Namespace hasDITANamespace(Node node)

Here you can find the source of hasDITANamespace(Node node)

Description

has DITA Namespace

License

Open Source License

Declaration

public static boolean hasDITANamespace(Node node) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Node;

public class Main {
    public static final String DITAC_NS_URI = "http://www.xmlmind.com/ditac/schema/ditac";

    public static boolean hasDITANamespace(Node node) {
        String uri = node.getNamespaceURI();
        return (uri == null || DITAC_NS_URI.equals(uri));
    }/*w w  w .j a  va2  s.c om*/
}

Related

  1. getNamespaceURI(Node node)
  2. getNameSpaceUri(Node node, String content, String namespaceURI)
  3. getNamespaceURI(Node node, String searchPrefix)
  4. getNodeName(Node node, NamespaceContext namespaceContext)
  5. getNodeString(Node node, NamespaceContext context)
  6. hasNamespace(Node node, String prefix, String namespace)
  7. hasNamespaceURI(@Nullable final Node aNode, @Nullable final String sNamespaceURI)
  8. hasNamespaceURI(@Nullable final Node aNode, @Nullable final String sNamespaceURI)
  9. isAppropriateElement(Node iNode, String iNodeName, String iNamespace)