DOMText implements a Text node which supports the W3C DOM API.
DOMText
321322323324325326327328329330331
} String text = new String(ch, start, end); if (text.length() > 0) { DOMComment domComment = new DOMComment(text); if (currentElement != null) { ((DOMElement)currentElement).add(domComment); } else { getDocument().appendChild(domComment); }
124125126127128129130131132133134
break; case Node.TEXT_NODE: domElement.add(new DOMText(child.getNodeValue())); 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: