Class XHTML1Emitter

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver, ReceiverWithOutputProperties

    public class XHTML1Emitter
    extends XMLEmitter
    XHTMLEmitter is an Emitter that generates XHTML 1 output. It is the same as XMLEmitter except that it follows the legacy HTML browser compatibility rules: for example, generating empty elements such as [BR /], and using [p][/p] for empty paragraphs rather than [p/]
    • Constructor Detail

      • XHTML1Emitter

        public XHTML1Emitter()
    • Method Detail

      • writeEmptyElementTagCloser

        protected void writeEmptyElementTagCloser​(java.lang.String displayName,
                                                  NodeName name)
                                           throws java.io.IOException
        Close an empty element tag.
        Overrides:
        writeEmptyElementTagCloser in class XMLEmitter
        Parameters:
        displayName - the name of the empty element
        name - the fingerprint of the name of the empty element
        Throws:
        java.io.IOException - if an IO exception occurs