November 2002
Intermediate to advanced
1120 pages
21h 2m
English
The CDATA class shown in Example 15.13 is a subclass of Text with almost no functionality of its own. The only difference between CDATA and Text is that when an XMLOutputter serializes a CDATA object, it places its contents in a CDATA section rather than escaping reserved characters such as the less-than symbol with character or entity references.
package org.jdom;
public class CDATA extends Text {
protected CDATA() { }
public CDATA(String s) throws IllegalDataException;
public Text setText(String s) throws IllegalDataException;
public void append(String s) throws IllegalDataException;
public String toString();
}
|
In my opinion, you really shouldn't use this class at all. The builder may (or ...
Read now
Unlock full access