Subject: | MagicElement output for enclosures is invalid |
The recommended snippet for RSS enclosures produces invalid output:
<enclosure length="1875860"
url="http://www.noidearecords.com/mp3s/Fiya-TellYourChildren.mp3"
type="audio/mpeg">1875860http://www.noidearecords.com/mp3s/Fiya-TellYourChildren.mp3audio/mpeg</enclosure>
Note the content inside the enclosure tag.
According to feedvalidator.org, this does not validate:
* line 14, column 116: Unexpected Text (6 occurrences) [help]
... Children.mp3" type="audio/mpeg">1875860http://www.noidearecords...
MagicElement's toString method dumps the attributes if no content is
provided, which makes it impossible to create empty elements.