Code example for Document

Methods: createComment

0
   * @param start The starting position in the array. 
   * @param length The number of characters to use from the array. 
   */ 
  public void comment(char ch[], int start, int length) throws org.xml.sax.SAXException
  { 
    append(m_doc.createComment(new String(ch, start, length)));
  } 
 
  /** Flag indicating that we are processing a CData section          */ 
  protected boolean m_inCData = false;
 
  /** 
   * Report the start of a CDATA section. 
   * 
   * @see #endCDATA 
   */ 
  public void startCDATA() throws org.xml.sax.SAXException 
  { 
    m_inCData = true;
    append(m_doc.createCDATASection(""));
  }