Class XmlDomWriter


  • public class XmlDomWriter
    extends Object
    Author:
    psoares
    • Field Detail

      • fCanonical

        protected boolean fCanonical
        Canonical output.
      • fXML11

        protected boolean fXML11
        Processing XML 1.1 document.
    • Constructor Detail

      • XmlDomWriter

        public XmlDomWriter()
        Default constructor.
      • XmlDomWriter

        public XmlDomWriter​(boolean canonical)
    • Method Detail

      • setCanonical

        public void setCanonical​(boolean canonical)
        Sets whether output is canonical.
      • setOutput

        public void setOutput​(Writer writer)
        Sets the output writer.
      • write

        public void write​(Node node)
        Writes the specified node, recursively.
      • sortAttributes

        protected Attr[] sortAttributes​(NamedNodeMap attrs)
        Returns a sorted list of attributes.
      • normalizeAndPrint

        protected void normalizeAndPrint​(String s,
                                         boolean isAttValue)
        Normalizes and prints the given string.
      • normalizeAndPrint

        protected void normalizeAndPrint​(char c,
                                         boolean isAttValue)
        Normalizes and print the given character.