Here you can find the source of hasDITANamespace(Node node)
public static boolean hasDITANamespace(Node node)
//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*/ }