Listing 4. ValuesTagHandler Implementation /** * This handler simply stores the text between tags in the Map under * the tag name */ class ValuesTagHandler implements SAXTagHandler { public void onStartTag(String argTagNamespace, String argLocalTagName, String argQName, Attributes argAttributes, StringBuffer argText, Map argContext, NamespaceContext argNamespaceContext) throws SAXException { argContext.put(argLocalTagName, argText.toString()); } public void onEndTag(String argTagNamespace, String argLocalTagName, String argQName, Map argContext, NamespaceContext argNamespaceContext) throws SAXException { // ignore } }