Code example for SAXException

0
    @Override 
    public void endElement(String uri, String localName, String qName)
            throws SAXException { 
        if (localName.equals("UserInputParm")) {
            if (m_parmName == null || m_parmName.length() == 0) {
                throw new SAXException("UserInputParm must have a name "
                        + "attribute with length>1."); 
            } 
            boolean parmRequired = false;
            if (m_parmRequired != null) {
                if (m_parmRequired.equalsIgnoreCase("true")
                        || m_parmRequired.equalsIgnoreCase("yes")
                        || m_parmRequired.equals("1")) {
                    parmRequired = true;
                } 
            } 
            m_methodParms.add(new ParameterDefinition(m_parmName,
                                                      m_parmLabel,
                                                      parmRequired,
                                                      m_parmDefaultValue,