コード例 #1
0
 /**
  * This will be called for each chunk of CDATA section encountered.
  *
  * @param cdataText all text in the CDATA section, including whitespace.
  */
 private void cdata(String cdataText) throws JDOMException {
   try {
     if (lexicalHandler != null) {
       lexicalHandler.startCDATA();
       characters(cdataText);
       lexicalHandler.endCDATA();
     } else {
       characters(cdataText);
     }
   } catch (SAXException se) {
     throw new JDOMException("Exception in CDATA", se);
   }
 }