DefaultCDATA is the default CDATA implementation. It is a doubly linked node which supports the parent relationship and can be modified in place.
DefaultCDATA
159160161162163164165
public Attribute createAttribute(Element owner, String name, String value) { return createAttribute(owner, createQName(name), value); } public CDATA createCDATA(String text) { return new DefaultCDATA(text); }
287288289290291292293294295296
return; } if (asAttribute == true) { addAttribute((Element) branch, obj, key, sValue); } else if (asCDATA == true) { branch.addElement(key).add(new DefaultCDATA(sValue)); } else { branch.addElement(key).setText(sValue); } }
121122123124125126127
/* */ public Attribute createAttribute(Element owner, String name, String value) { /* 160 */ return createAttribute(owner, createQName(name), value); /* */ } /* */ /* */ public CDATA createCDATA(String text) { /* 164 */ return new DefaultCDATA(text); /* */ }