Use Attributes.items() - completely forgot about it.
Separate <link> element extraction as it can be used for feed discovery.