Class RepairingContentHandler

java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
net.sf.saxon.event.RepairingContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class RepairingContentHandler extends XMLFilterImpl
A RepairingContentHandler is a SAX filter that can be placed on the input pipeline in front of a ReceivingContentHandler for use in cases where the events supplied by the XML parser are not guaranteed to satisfy all the consistency constraints.

In this initial implementation, all it does is to generate a startPrefixMapping call for the namespace used in an element name supplied to startElement(). This is needed when accepting input from the TagSoup HTML parser.

  • Constructor Details

    • RepairingContentHandler

      public RepairingContentHandler()
  • Method Details

    • startElement

      public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
      Filter a start element event.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class XMLFilterImpl
      Parameters:
      uri - The element's Namespace URI, or the empty string.
      localName - The element's local name, or the empty string.
      qName - The element's qualified (prefixed) name, or the empty string.
      atts - The element's attributes.
      Throws:
      SAXException - The client may throw an exception during processing.