Receive notification of ignorable whitespace in element content.

Validating Parsers must use this method to report each chunk of whitespace in element content (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models.

SAX parsers may return all contiguous whitespace in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the SAXLocator provides useful information.

Parameter:

  • str: characters from the XML document.

SEE: characters

Property definitions

sax $ ContentHandler :: ignorable_whitespace
	# Receive notification of ignorable whitespace in element content.
	#
	# Validating Parsers must use this method to report each chunk
	# of whitespace in element content (see the W3C XML 1.0 recommendation,
	# section 2.10): non-validating parsers may also use this method
	# if they are capable of parsing and using content models.
	#
	# SAX parsers may return all contiguous whitespace in a single
	# chunk, or they may split it into several chunks; however, all of
	# the characters in any single event must come from the same
	# external entity, so that the `SAXLocator` provides useful
	# information.
	#
	# Parameter:
	#
	# * `str`: characters from the XML document.
	#
	# SEE: `characters`
	fun ignorable_whitespace(str: String) do end
lib/sax/content_handler.nit:245,2--263,45

sax $ XMLFilterImpl :: ignorable_whitespace
	redef fun ignorable_whitespace(str) do
		if content_handler != null then
			content_handler.ignorable_whitespace(str)
		end
	end
lib/sax/helpers/xml_filter_impl.nit:306,2--310,4

saxophonit $ SAXEventLogger :: ignorable_whitespace
	redef fun ignorable_whitespace(str) do
		log.push(["ignorable_witespace", str])
		super
	end
lib/saxophonit/testing.nit:401,2--404,4