Code example for Document

Methods: createProcessingInstruction, createTextNode

0
      return;  // avoid DOM006 Hierarchy request error 
 
 
    String s = new String(ch, start, length);
 
    append(m_doc.createProcessingInstruction("xslt-next-is-raw",
                                             "formatter-to-dom")); 
    append(m_doc.createTextNode(s));
  } 
 
  /** 
   * Report the beginning of an entity. 
   * 
   * The start and end of the document entity are not reported. 
   * The start and end of the external DTD subset are reported 
   * using the pseudo-name "[dtd]".  All other events must be 
   * properly nested within start/end entity events. 
   * 
   * @param name The name of the entity.  If it is a parameter 
   *        entity, the name will begin with '%'. 
   * @see #endEntity