Package org.jsoup.nodes
Class XmlDeclaration
- java.lang.Object
-
- org.jsoup.nodes.Node
-
- org.jsoup.nodes.XmlDeclaration
-
- All Implemented Interfaces:
java.lang.Cloneable
public class XmlDeclaration extends Node
An XML Declaration.- Author:
- Jonathan Hedley, jonathan@hedley.net
-
-
Constructor Summary
Constructors Constructor Description XmlDeclaration(java.lang.String name, java.lang.String baseUri, boolean isProcessingInstruction)
Create a new XML declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getWholeDeclaration()
Get the unencoded XML declaration.java.lang.String
name()
Get the name of this declaration.java.lang.String
nodeName()
Get the node name of this node.java.lang.String
toString()
-
Methods inherited from class org.jsoup.nodes.Node
absUrl, addChildren, addChildren, after, after, attr, attr, attributes, baseUri, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, childNodeSize, clone, doClone, ensureChildNodes, equals, hasAttr, hasSameValue, html, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeAttr, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap, wrap
-
-
-
-
Method Detail
-
nodeName
public java.lang.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).
-
name
public java.lang.String name()
Get the name of this declaration.- Returns:
- name of this declaration.
-
getWholeDeclaration
public java.lang.String getWholeDeclaration()
Get the unencoded XML declaration.- Returns:
- XML declaration
-
-