Class XmlDeclaration

  • All Implemented Interfaces:
    Cloneable

    public class XmlDeclaration
    extends Node
    An XML Declaration.
    Author:
    Jonathan Hedley, jonathan@hedley.net
    • Constructor Detail

      • XmlDeclaration

        public XmlDeclaration​(String name,
                              String baseUri,
                              boolean isProcessingInstruction)
        Create a new XML declaration
        Parameters:
        name - of declaration
        baseUri - base uri
        isProcessingInstruction - is processing instruction
    • Method Detail

      • nodeName

        public String nodeName()
        Description copied from class: Node
        Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).
        Specified by:
        nodeName in class Node
        Returns:
        node name
      • name

        public String name()
        Get the name of this declaration.
        Returns:
        name of this declaration.
      • getWholeDeclaration

        public String getWholeDeclaration()
        Get the unencoded XML declaration.
        Returns:
        XML declaration