Package org.jsoup.nodes
Class XmlDeclaration
- java.lang.Object
-
- org.jsoup.nodes.Node
-
- org.jsoup.nodes.XmlDeclaration
-
-
Constructor Summary
Constructors Constructor Description XmlDeclaration(String name, String baseUri, boolean isProcessingInstruction)
Create a new XML declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getWholeDeclaration()
Get the unencoded XML declaration.String
name()
Get the name of this declaration.String
nodeName()
Get the node name of this node.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 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 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
-
-