org.jsoup.nodes
Class XmlDeclaration
java.lang.Object
org.jsoup.nodes.Node
org.jsoup.nodes.XmlDeclaration
public class XmlDeclaration
- extends Node
An XML Declaration.
- Author:
- Jonathan Hedley, jonathan@hedley.net
Methods inherited from class org.jsoup.nodes.Node |
absUrl, addChild, attr, attr, attributes, baseUri, childNode, childNodes, equals, hasAttr, hashCode, indent, indexInList, nextSibling, nodeDepth, outerHtml, parent, previousSibling, removeAttr, removeChild, replaceChild, setBaseUri, setParentNode, siblingIndex, siblingNodes |
XmlDeclaration
public XmlDeclaration(String data,
String baseUri,
boolean isProcessingInstruction)
- Create a new XML declaration
- Parameters:
data
- databaseUri
- base uriisProcessingInstruction
- is processing instruction
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
getWholeDeclaration
public String getWholeDeclaration()
- Get the unencoded XML declaration.
- Returns:
- XML declaration
toString
public String toString()
- Overrides:
toString
in class Node
Copyright © 2009-2010 Jonathan Hedley. All Rights Reserved.