Validates user specified elements in an XML file using SAX.