docs: private int countAttributes(NamedNodeMap attributesR) {
          int cntAttributes = 0;
  
          for (int i = 0; i < attributesR.getLength(); i++) {
              if (!attributesR.item(i).getNodeName().startsWith(XMLConstants.XMLNS_ATTRIBUTE)) {
                  cntAttributes++;
              }
          }
  
          return cntAttributes;
      }