public void redirectSubtree(ContentHandler child,String uri,String local,String qname) throws SAXException {
  redirect=child;
  redirect.setDocumentLocator(locator);
  redirect.startDocument();
  for (int i=0; i < namespaces.size(); i+=2)   redirect.startPrefixMapping((String)namespaces.get(i),(String)namespaces.get(i + 1));
  redirect.startElement(uri,local,qname,currentAtts);
  redirectionDepth=1;
}

public void redirectSubtree ( ContentHandler child , String uri , String local , String qname ) throws SAXException { redirect = child ; redirect . setDocumentLocator ( locator ) ; redirect . startDocument ( ) ; for ( int i = 0 ; i < namespaces . size ( ) ; i += 2 ) redirect . startPrefixMapping ( ( String ) namespaces . get ( i ) , ( String ) namespaces . get ( i + 1 ) ) ; redirect . startElement ( uri , local , qname , currentAtts ) ; redirectionDepth = 1 ; }
this method can be called only from the enterelement handler . the sub - tree rooted at the new element will be redirected to the specified contenthandler . < p > currently active ngcchandler will only receive the leaveelement event of the newly started element .
