private void initHandler(ContentHandler ch) throws SAXException {
  if (locator != null)   ch.setDocumentLocator(locator);
  ch.startDocument();
  for (PrefixMapping pm=prefixMapping; pm != null; pm=pm.parent)   ch.startPrefixMapping(pm.prefix,pm.uri);
}

private void initHandler ( ContentHandler ch ) throws SAXException { if ( locator != null ) ch . setDocumentLocator ( locator ) ; ch . startDocument ( ) ; for ( PrefixMapping pm = prefixMapping ; pm != null ; pm = pm . parent ) ch . startPrefixMapping ( pm . prefix , pm . uri ) ; }
initialize a content handler . this content handler will receive the document fragment starting at the current element . therefore we need to set a locator , call startdocument and give the current namespace content to that content handler .
