code: Boolean getBooleanAttribute(org.w3c.dom.Node attribute)  {
      String s = getStringAttribute(attribute);
  
      if (s == null) {
        return null;
      }
  
      return Boolean.parseBoolean(s);
    }
docs: Get a DOM attribute as a Boolean value.