«^»
5.1. Creating a tool in the Java programming language

XMLReader tXMLReader = new org.apache.xerces.parsers.SAXParser();

Handler tHandler = new Handler();
tXMLReader.setContentHandler(tHandler);
FileReader tFileReader = new FileReader("consumables.xml");
InputSource tInputSource = new InputSource(tFileReader);
tXMLReader.parse(tInputSource);

public class Handler extends DefaultHandler
{
   public void startElement(String pURI, String pLocalName,
                            String pQualifiedName, Attributes pAttributes)
   {
      System.out.println(pLocalName);
   }
}