public URI getNamespaceURI(String prefix) { //See if the prefix is local. prefix = (prefix != null) ? prefix : emptyString; URI namespace = (URI)prefixToNamespaceMap.get(prefix); if (namespace == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespaceURI(prefix); } else { //Otherwise return the found namespace or null. return namespace; } }
public URI getNamespaceURI(String prefix) { //See if the prefix is local. prefix = (prefix != null) ? prefix : emptyString; URI namespace = (URI)prefixToNamespaceMap.get(prefix); if (namespace == null && this instanceof NestedElement) { //If not call parents to find prefix if I'm nested. return ((NestedElement)this).getParentElement().getNamespaceURI(prefix); } else { //Otherwise return the found namespace or null. return namespace; } }
String attrPrefix=ns.getPrefix(); attrName= DOMUtils.getQualifiedValue(ownerElem.getNamespaceURI(attrPrefix).toString(), attrLocalName, ownerElem); }else{
String attrPrefix=ns.getPrefix(); attrName= DOMUtils.getQualifiedValue(ownerElem.getNamespaceURI(attrPrefix).toString(), attrLocalName, ownerElem); }else{
String attrPrefix=ns.getPrefix(); attrName= OMUtils.getQualifiedValue(ownerElem.getNamespaceURI(attrPrefix).toString(), attrLocalName, ownerElem); }else{