Programmed correct functionality for resolving <id> attributes and storing them in a table.