From 86dc04fcd902253771d813086d9e956ceb4ae92d Mon Sep 17 00:00:00 2001 From: Jeremie Panzer Date: Tue, 10 Mar 2015 09:02:45 +0100 Subject: [PATCH] set opml version for OPML 1.0 generator --- src/main/java/com/rometools/opml/io/impl/OPML10Generator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/rometools/opml/io/impl/OPML10Generator.java b/src/main/java/com/rometools/opml/io/impl/OPML10Generator.java index e9af30b..dfb0368 100644 --- a/src/main/java/com/rometools/opml/io/impl/OPML10Generator.java +++ b/src/main/java/com/rometools/opml/io/impl/OPML10Generator.java @@ -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);