public class XMLRoot extends XMLNode
attributes, children, name, nodeParent
Constructor and Description |
---|
XMLRoot(java.lang.String nodeName)
Create the root Node.
|
Modifier and Type | Method and Description |
---|---|
XMLRoot |
copy()
Create a copy of this node.
|
boolean |
equals(java.lang.Object o)
Return true if this node is equal to another Object.
|
java.lang.String |
getEncoding()
Return the declared encoding of the XML file.
|
int |
hashCode() |
void |
setEncoding(java.lang.String encoding)
Set the encoding of the XML file.
|
addAttribute, addAttribute, addAttribute, addAttribute, addChild, countAttributes, countChildren, getAllChildren, getAttributes, getAttributeValue, getAttributeValueAsBoolean, getAttributeValueAsBoolean, getAttributeValueAsFloat, getAttributeValueAsFloat, getAttributeValueAsInt, getAttributeValueAsInt, getCDATA, getChildren, getFirstChild, getLastChild, getName, getNextSibling, getParent, getPreviousSibling, hasAttribute, hasCDATA, hasChildren, setCDATA, toString
public XMLRoot(java.lang.String nodeName)
nodeName
- the Node namepublic void setEncoding(java.lang.String encoding)
encoding
- the encoding of the XML filepublic java.lang.String getEncoding()
public XMLRoot copy()
public boolean equals(java.lang.Object o)
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence