public class XMLRoot extends XMLNode
attributes, children, name, nodeParent
Constructor and Description |
---|
XMLRoot(String nodeName)
Create the root Node.
|
Modifier and Type | Method and Description |
---|---|
XMLRoot |
copy()
Create a copy of this node.
|
boolean |
equals(Object o)
Return true if this node is equal to another Object.
|
String |
getEncoding()
Return the declared encoding of the XML file.
|
int |
hashCode() |
void |
setEncoding(String encoding)
Set the encoding of the XML file.
|
addAttribute, 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(String nodeName)
nodeName
- the Node namepublic void setEncoding(String encoding)
encoding
- the encoding of the XML filepublic String getEncoding()
public XMLRoot copy()
public boolean equals(Object o)
Copyright © 2023. All rights reserved.