Class XmlRestrictedCharReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public class XmlRestrictedCharReader
    extends FilteredCharReader
    A reader implementation that filters out characters that are not allowed in XML 1.0 or XML 1.1 documents. The default xMLVersion is to assume XML 1.0. By default, invalid characters are simply removed from the stream. Alternatively, a replacement character can be provided so long as it is a valid XML character itself.