Class XHTMLEmitter

  • All Implemented Interfaces:
    javax.xml.transform.Result

    public class XHTMLEmitter
    extends XMLEmitter
    XHTMLEmitter is an Emitter that generates XHTML output. It is the same as XMLEmitter except that it follows the legacy HTML browser compatibility rules: for example, generating empty elements such as
    , and using

    for empty paragraphs rather than

    • Constructor Detail

      • XHTMLEmitter

        public XHTMLEmitter()
    • Method Detail

      • emptyElementTagCloser

        protected java.lang.String emptyElementTagCloser​(int nameCode)
        Close an empty element tag.
        Overrides:
        emptyElementTagCloser in class XMLEmitter