@Override public void endElement(String uri,String localName,String qName) throws SAXException {
  if (qName.equals(TAG_ROOT)) {
  }
 else   if (qName.equals(TAG_GROUP) || qName.equals(TAG_PROPERTY)) {
    SettingsItem item=itemStack.remove(itemStack.size() - 1);
    settingsItems.put(item.getKey(),item);
  }
 else {
    throw new SAXException("Unknown tag or usage: " + localName);
  }
}

@ Override public void endElement ( String uri , String localName , String qName ) throws SAXException { if ( qName . equals ( TAG_ROOT ) ) { } else if ( qName . equals ( TAG_GROUP ) || qName . equals ( TAG_PROPERTY ) ) { SettingsItem item = itemStack . remove ( itemStack . size ( ) - 1 ) ; settingsItems . put ( item . getKey ( ) , item ) ; } else { throw new SAXException ( "Unknown tag or usage: " + localName ) ; } }
xml parser : closing xml tag .
