11.3 End Elements

<..ScriptsManager: void endElement(ns, sName, qName)..>
 public void endElement(String ns, String sName, String qName){
    String s = "</" + qName + ">";
    add( s );
    Object [] state = (Object []) stack.pop();
    if( (String) state[1] != null ){
      <.s := invoke script.>
      <.set end element.>
      <.recall status of xmlns above element.>
      if( !s.equals("") ){
        <.remove xmlns attributes supported from above.>
        add( s );
      }
    } else { <.recall status of xmlns above element.> }
 }
 -_-_-

<..s := invoke script..>
 Object parmValues[] = new Object[2];
 parmValues[0] = scripts.get( match );
 parmValues[1] = code;
 try {
   s = (String) method.invoke( null, parmValues );
 } catch(java.lang.reflect.InvocationTargetException e){
    log.println("--- ScriptsManager Error 1 --- " + e.getCause() );
    log.flush();
 } catch (Exception e){
    log.println("--- ScriptsManager Error 2 --- " + e );
    log.flush();
 }
 -_-_-

Can’t invoke exception above.

<..set end element..>
 savemode = ((Boolean) state[0]).booleanValue();
 code = (String) state[1];
 match = (String) state[2];
 -_-_-