Code example for Document

Methods: createCDATASection

0
 
  private Node createCDATASection(Document doc, String text) {
    if (text != null) {
      return doc.createCDATASection(text);
    } else { 
      return doc.createCDATASection("");
    } 
  } 
 
  private Node createTextNode(Document doc, String text) {
    if (text != null) {
      return doc.createTextNode(text);
    } else { 
      return doc.createTextNode("");
    } 
  } 
 
  /** 
   * Helper method to store an individual trackback. 
   * 
   * @param trackBack the TrackBack being stored