Class Pxp_document.comment_impl


class ['a node #extension as 'a] comment_impl : 'a -> ['a] node
<ID:class-comment-impl> <TYPE:class> <CALL> 'ext comment_impl <SIG> AUTO <DESCR> This class is an implementation of node which realizes comment nodes. You can create a new object by

let exemplar = new comment_impl ext_obj

which creates a special form of empty element which already contains a reference to the ext_obj, but is otherwise empty. This special form is called an comment exemplar. In order to get a working element that can be used in a node tree it is required to apply the method create_other on the exemplar object, e.g.

let comment = exemplar # create_other dtd </ID>