public void endElement() throws SAXException {
  writePendingText();
  String uri=getCurrentElementUri();
  String local=getCurrentElementLocal();
  String prefix=nsContext.getPrefix(uri);
  _assert(prefix != null);
  String qname;
  if (prefix.length() != 0)   qname=prefix + ':' + local;
 else   qname=local;
  writer.endElement(uri,local,qname);
  nsContext.iterateDeclaredPrefixes(endPrefixCallback);
  popElement();
  textBuf.setLength(0);
  nsContext.endElement();
}

public void endElement ( ) throws SAXException { writePendingText ( ) ; String uri = getCurrentElementUri ( ) ; String local = getCurrentElementLocal ( ) ; String prefix = nsContext . getPrefix ( uri ) ; _assert ( prefix != null ) ; String qname ; if ( prefix . length ( ) != 0 ) qname = prefix + ':' + local ; else qname = local ; writer . endElement ( uri , local , qname ) ; nsContext . iterateDeclaredPrefixes ( endPrefixCallback ) ; popElement ( ) ; textBuf . setLength ( 0 ) ; nsContext . endElement ( ) ; }
ends marshalling of an element . pops the internal stack .
