Package com.oorian.xml
Class CData
java.lang.Object
com.oorian.xml.CData
- All Implemented Interfaces:
XmlNode
Represents a CDATA section in an XML document.
CDATA sections contain text that should not be parsed for XML markup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the CDATA content.voidsetContent(String content) Sets the CDATA content.toString()toXmlString(int indent) Returns the XML string representation of this node with the specified indentation level.
-
Constructor Details
-
CData
Constructs a new CData section with the specified content.- Parameters:
content- the CDATA content.
-
-
Method Details
-
setContent
Sets the CDATA content.- Parameters:
content- The new content
-
getContent
Returns the CDATA content.- Returns:
- The content
-
toXmlString
Description copied from interface:XmlNodeReturns the XML string representation of this node with the specified indentation level.- Specified by:
toXmlStringin interfaceXmlNode- Parameters:
indent- the indentation level (number of two-space indents).- Returns:
- the formatted XML string.
-
toString
-