/** * Introduced in DOM Level 2. */ public boolean hasAttributeNS(String namespaceURI, String localName) { return getAttributeNodeNS(namespaceURI, localName) != null; }
/** @param namespace the namespace * @param key case-sensitive */ @Override public Attr getAttributeNodeNS( String namespace, String key ) { if(namespace!=null && 0<namespace.length()) return super.getAttributeNodeNS(namespace, key); return super.getAttributeNode(key); }
synchronizeData(); Attr at = getAttributeNodeNS(namespaceURI, localName);
NodeImpl attr = (NodeImpl)elem.getAttributeNodeNS("http://www.w3.org/2000/xmlns/", "xmlns"); if (attr != null) { String value = attr.getNodeValue();
localName = qualifiedName.substring(index + 1); Attr newAttr = getAttributeNodeNS(namespaceURI, localName); if (newAttr == null) {