is_parsed Function

private elemental function is_parsed(self)

Arguments

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

XML tag.

Return Value logical

Result of check.

Description

Check is tag is correctly parsed, i.e. its tag_name is allocated.


Source Code

  elemental function is_parsed(self)
  !---------------------------------------------------------------------------------------------------------------------------------
  !< Check is tag is correctly parsed, i.e. its *tag_name* is allocated.
  !---------------------------------------------------------------------------------------------------------------------------------
  class(xml_tag), intent(in) :: self      !< XML tag.
  logical                    :: is_parsed !< Result of check.
  !---------------------------------------------------------------------------------------------------------------------------------

  !---------------------------------------------------------------------------------------------------------------------------------
  is_parsed = self%tag_name%is_allocated()
  !---------------------------------------------------------------------------------------------------------------------------------
  endfunction is_parsed