Java XML QName matchingNamespace(Node node, QName requiredNamespace)

Here you can find the source of matchingNamespace(Node node, QName requiredNamespace)

Description

matching Namespace

License

Apache License

Declaration

private static boolean matchingNamespace(Node node, QName requiredNamespace) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.*;

import javax.xml.namespace.QName;

public class Main {
    private static boolean matchingNamespace(Node node, QName requiredNamespace) {
        if (requiredNamespace == null) {
            return true;
        } else {/* ww w .  j a va 2  s. c o m*/
            return requiredNamespace.getNamespaceURI().equals(node.getNamespaceURI());
        }
    }
}

Related

  1. marshallJAXBElement(Class declaredType, QName name, Class scope, BoundType v)
  2. marshalToString(T obj, Class clazz, QName qname)
  3. match(XMLStreamReader reader, QName name)
  4. matches(Node node, String requiredLocalName, QName requiredNamespace)
  5. matches(QName qname, Node node)
  6. matchNode(Node node, QName name)
  7. moveReaderToTag(XMLStreamReader reader, QName... tags)
  8. namedNode(QName qname)
  9. nodeToQName(Node node)