code: private boolean isNamespaceDefinition(final Attr attribute) {
  
          final Element parent = attribute.getOwnerElement();
  
          return XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(parent.getNamespaceURI())
                  && SCHEMA.equalsIgnoreCase(parent.getLocalName())
                  && oldPrefix.equals(attribute.getLocalName());
      }
docs: Discovers if the provided attribute is the oldPrefix namespace definition, i.e. if the given attribute is the
  xmlns:[oldPrefix] within the schema Element.
  
  @param attribute the attribute to test.
  @return <code>true</code> if the provided attribute is the oldPrefix namespace definition, i.e. if the given
  attribute is the xmlns:[oldPrefix] within the schema Element.