DOMCDATA implements a CDATA Section which supports the W3C DOM API.
DOMCDATA
308309310311312313314315
cdataText = new StringBuffer(); } public void endCDATA() throws SAXException { insideCDATASection = false; DOMCDATA cdata = new DOMCDATA(cdataText.toString()); ((DOMElement)currentElement).add(cdata); }
127128129130131132133134135136137
break; case Node.COMMENT_NODE: domElement.add(new DOMComment(child.getNodeValue())); break; case Node.CDATA_SECTION_NODE: domElement.add(new DOMCDATA(child.getNodeValue())); break; default: // Do not support entity reference node and processing instruction node. } }