Add child ID to tag children list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(xml_file), | intent(inout) | :: | self |
XML file handler. |
||
integer(kind=I4P), | intent(in) | :: | parent_id |
Parent ID. |
||
integer(kind=I4P), | intent(in) | :: | child_id |
Child ID. |
pure subroutine add_child(self, parent_id, child_id) !< Add child ID to tag children list. class(xml_file), intent(inout) :: self !< XML file handler. integer(I4P), intent(in) :: child_id !< Child ID. integer(I4P), intent(in) :: parent_id !< Parent ID. if (parent_id > 0 .and. parent_id <= self%nt) call self%tag(parent_id)%add_child_id(child_id=child_id) endsubroutine add_child