4.7 XML Comments

<..register MyLexicalHandler..>
 xmlReader.setProperty(
    "http://xml.org/sax/properties/lexical-handler",
    new MyLexicalHandler()
 );
-_-_-

<..class MyLexicalHandler implements LexicalHandler..>
 class MyLexicalHandler implements LexicalHandler {
   public void comment (char[] text, int start, int length)
                                       throws SAXException {
     //......
   }
   public void startEntity(String x){}
   public void endEntity(String x){}
   public void startCDATA(){}
   public void endCDATA(){}
   public void startDTD(String x, String y, String z){}
   public void endDTD(){}
 }
-_-_-