Look up an attribute's Namespace URI by index.

Parameters:

  • index: attribute index.

Returns:

The Namespace URI, or the empty string if none is available, or null if the index is out of range.

SEE: length

Property definitions

sax $ Attributes :: uri
	# Look up an attribute's Namespace URI by index.
	#
	# Parameters:
	#
	# * `index`: attribute index.
	#
	# Returns:
	#
	# The Namespace URI, or the empty string if none
	# is available, or `null` if the index is out of
	# range.
	#
	# SEE: `length`
	fun uri(index: Int): nullable String is abstract
lib/sax/attributes.nit:53,2--66,49

sax $ AttributesImpl :: uri
	redef fun uri(index) do
		if index >= 0 and index < length then
			return data[index * 5]
		else
			return null
		end
	end
lib/sax/helpers/attributes_impl.nit:36,2--42,4