code: public void startElement(String uri, String lname, String name,
              Attributes attrs) {
  
          Properties attributes = new Properties();
          if (attrs != null) {
              for (int i = 0; i < attrs.getLength(); i++) {
                  String attribute = attrs.getQName(i);
                  attributes.setProperty(attribute, attrs.getValue(i));
              }
          }
          handleStartingTags(name, attributes);
      }
docs: This method gets called when a start tag is encountered.
  
  @param uri
  the Uniform Resource Identifier
  @param lname
  the local name (without prefix), or the empty string if
  Namespace processing is not being performed.
  @param name
  the name of the tag that is encountered
  @param attrs
  the list of attributes