name Function

private pure function name(self)

Arguments

Type IntentOptional AttributesName
class(xml_tag), intent(in) :: self

XML tag.

Return Value character(len=:), allocatable

XML tag name.

Description

Return tag name.


Source Code

  pure function name(self)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Return tag name.
  !---------------------------------------------------------------------------------------------------------------------------------
  class(xml_tag), intent(in)    :: self !< XML tag.
  character(len=:), allocatable :: name !< XML tag name.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  name = self%tag_name%chars()
  !---------------------------------------------------------------------------------------------------------------------------------
  endfunction name