@Override
    public void comment(char ch[], int start, int length)
            throws org.xml.sax.SAXException {
        // tagsoup sometimes submits invalid values here
        if (ch == null || start < 0 || length >= (ch.length - start)
                || length < 0) {
            return;
        }
        append(m_doc.createComment(new String(ch, start, length)));
    }
@Override
    public void comment(char ch[], int start, int length)
            throws org.xml.sax.SAXException {
        
        if (ch == null || start < 0 || length >= (ch.length - start)
                || length < 0) {
            return;
        }
        append(m_doc.createComment(new String(ch, start, length)));
    }
@ Override public void comment ( char ch [ ] , int start , int length ) throws org . xml . sax . SAXException { // tagsoup sometimes submits invalid values here if ( ch == null || start < 0 || length >= ( ch . length - start ) || length < 0 ) { return ; } append ( m_doc . createComment ( new String ( ch , start , length ) ) ) ; }
Report an XML comment anywhere in the document.

This callback will be used for comments inside or outside the document
element, including comments in the external DTD subset (if read).

@param ch
An array holding the characters in the comment.
@param start
The starting position in the array.
@param length
The number of characters to use from the array.
Report an XML comment anywhere in the document .