Report an XML comment anywhere in the document.

This callback will be used for comments inside or outside the document element, including comments in the external DTD subset (if read). Comments in the DTD must be properly nested inside start/end_dtd and start/end_entity events (if used).

Parameters:

  • str: characters in the comment.

Property definitions

sax $ LexicalHandler :: comment
	# Report an XML comment anywhere in the document.
	#
	# This callback will be used for comments inside or outside the
	# document element, including comments in the external DTD
	# subset (if read). Comments in the DTD must be properly
	# nested inside `start/end_dtd` and `start/end_entity` events (if
	# used).
	#
	# Parameters:
	#
	# * `str`: characters in the comment.
	fun comment(str: String) do end
lib/sax/ext/lexical_handler.nit:151,2--162,32

saxophonit $ SAXEventLogger :: comment
	redef fun comment(str) do
		log.push(["comment", str])
		if lexical_handler != null then
			lexical_handler.comment(str)
		end
	end
lib/saxophonit/testing.nit:523,2--528,4