Example #1
0
  public void startElement(String uri, String localName, String qName, Attributes atts)
      throws SAXException {

    if (!localName.equalsIgnoreCase("html")) {
      super.startElement(localName, atts);
    } // else skip HTML root element
  }
Example #2
0
 public void characters(char[] ch, int start, int length) throws SAXException {
   if (useMagic) {
     magic.showAllIn(ch, start, length);
   }
   super.writeCharacters(ch, start, length, true);
 }
Example #3
0
 public void endElement(String uri, String localName, String qName) throws SAXException {
   if (!localName.equalsIgnoreCase("html")) {
     super.endElement(localName);
   } // else skip HTML root element
 }