public class Text extends Object implements XMLNode
| Modifier and Type | Method and Description |
|---|---|
int |
children()
Returns number of children for this node.
|
XMLNode |
clone()
makes a deep copy of this XML Node and returns it
|
String |
getText() |
String |
stringify()
Returns XML representation of this XML node
|
String |
stringifyChildren()
Returns XML string with all the children nodes of this node
|
String |
val()
Returns concatenated String of
Text and CDataSection
nodes in the children. |
public Text(String text)
public String getText()
public int children()
XMLNodepublic String stringify()
XMLNodepublic String stringifyChildren()
XMLNodestringifyChildren in interface XMLNodepublic XMLNode clone()
XMLNodepublic String val()
XMLNodeText and CDataSection
nodes in the children. If there is no child of type Text or
CDataSection exist, this method will return nullCopyright © 2019. All rights reserved.