I am working on a Drupal module proving RSS feed generation (though not posting it to Drupal Answers, as my question is not really Drupal-related).
What I am wondering is whether an RSS feed could have multiple <atom:link> elements? (Or any other element for that matter?)
For example, PubSubHubbub requires an <atom:link> with rel attributes set to hub and href pointing to feed’s update hub.
On the other hand, the same <atom:link> could be used with rel attribute set to self and href pointing to feed’s URL.
Which means, if I want to use both, I would need to include <atom:link> element twice in my feed. Or am I missing something here?
Yes, you can have multiple
<atom:link>elements, each one would have a differentrelattribute. That is valid Atom XML and customary practice.You should review the Atom spec and the RSS spec, too.