code: public void startElement(String uri, String lname, String name, Attributes attrs) {
          if (myTags.containsKey(name)) {
              XmlPeer peer = (XmlPeer) myTags.get(name);
              handleStartingTags(peer.getTag(), peer.getAttributes(attrs));
          }
          else {
              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