set opml version for OPML 1.0 generator

This commit is contained in:
Jeremie Panzer 2015-03-10 09:02:45 +01:00
parent 3fe096365c
commit 86dc04fcd9

View file

@ -67,6 +67,7 @@ public class OPML10Generator extends BaseWireFeedGenerator implements WireFeedGe
final Opml opml = (Opml) feed;
final Document doc = new Document();
final Element root = new Element("opml");
root.setAttribute("version", "1.0");
doc.addContent(root);
final Element head = generateHead(opml);