public void cdata ( char ch [ ] , int start , int length ) { if ( isOutsideDocElem ( ) && XMLCharacterRecognizer . isWhiteSpace ( ch , start , length ) ) { return ; // avoid DOM006 Hierarchy request error } String s = new String ( ch , start , length ) ; // XXX ab@apache.org: modified from the original, to accomodate TagSoup. Node n = m_currentNode . getLastChild ( ) ; if ( n instanceof CDATASection ) { ( ( CDATASection ) n ) . appendData ( s ) ; } else if ( n instanceof Comment ) { ( ( Comment ) n ) . appendData ( s ) ; } }
Receive notification of cdata .