Receive notification of a processing instruction.

The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.

A SAX parser must never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.

Parameters:

  • target: processing instruction target.
  • data: processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target.

Property definitions

sax $ ContentHandler :: processing_instruction
	# Receive notification of a processing instruction.
	#
	# The Parser will invoke this method once for each processing
	# instruction found: note that processing instructions may occur
	# before or after the main document element.
	#
	# A SAX parser must never report an XML declaration (XML 1.0,
	# section 2.8) or a text declaration (XML 1.0, section 4.3.1)
	# using this method.
	#
	# Parameters:
	#
	# * `target`: processing instruction target.
	# * `data`: processing instruction data, or `null` if
	# none was supplied. The data does not include any
	# whitespace separating it from the target.
	fun processing_instruction(target: String, data: nullable String) do end
lib/sax/content_handler.nit:265,2--281,73

sax $ XMLFilterImpl :: processing_instruction
	redef fun processing_instruction(target, data) do
		if content_handler != null then
			content_handler.processing_instruction(target, data)
		end
	end
lib/sax/helpers/xml_filter_impl.nit:312,2--316,4

saxophonit $ SAXEventLogger :: processing_instruction
	redef fun processing_instruction(target, data) do
		log.push(["processing_instruction", target, data or else "^NULL"])
		super
	end
lib/saxophonit/testing.nit:406,2--409,4