public class

XmlDeclaration

extends Node
java.lang.Object
   ↳ org.jsoup.nodes.Node
     ↳ org.jsoup.nodes.XmlDeclaration

Class Overview

An XML Declaration.

Summary

Public Constructors
XmlDeclaration(String data, String baseUri, boolean isProcessingInstruction)
Create a new XML declaration
Public Methods
String getWholeDeclaration()
Get the unencoded XML declaration.
String nodeName()
Get the node name of this node.
String toString()
[Expand]
Inherited Methods
From class org.jsoup.nodes.Node
From class java.lang.Object

Public Constructors

public XmlDeclaration (String data, String baseUri, boolean isProcessingInstruction)

Create a new XML declaration

Parameters
data data
baseUri base uri
isProcessingInstruction is processing instruction

Public Methods

public String getWholeDeclaration ()

Get the unencoded XML declaration.

Returns
  • XML declaration

public String nodeName ()

Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).

Returns
  • node name

public String toString ()