{"action":"closed","issue":{"url":"https://api.github.com/repos/oozcitak/xmlbuilder-js/issues/80","labels_url":"https://api.github.com/repos/oozcitak/xmlbuilder-js/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/oozcitak/xmlbuilder-js/issues/80/comments","events_url":"https://api.github.com/repos/oozcitak/xmlbuilder-js/issues/80/events","html_url":"https://github.com/oozcitak/xmlbuilder-js/issues/80","id":70828139,"number":80,"title":"Is there a way to set RSS attributes (before the root)","user":{"login":"BenChirlin","id":908329,"avatar_url":"https://avatars.githubusercontent.com/u/908329?v=3","gravatar_id":"","url":"https://api.github.com/users/BenChirlin","html_url":"https://github.com/BenChirlin","followers_url":"https://api.github.com/users/BenChirlin/followers","following_url":"https://api.github.com/users/BenChirlin/following{/other_user}","gists_url":"https://api.github.com/users/BenChirlin/gists{/gist_id}","starred_url":"https://api.github.com/users/BenChirlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenChirlin/subscriptions","organizations_url":"https://api.github.com/users/BenChirlin/orgs","repos_url":"https://api.github.com/users/BenChirlin/repos","events_url":"https://api.github.com/users/BenChirlin/events{/privacy}","received_events_url":"https://api.github.com/users/BenChirlin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-25T00:17:36Z","updated_at":"2015-04-27T07:55:29Z","closed_at":"2015-04-27T07:55:29Z","body":"I'm trying to create a WP RSS import file using this library and it's been fantastic so far but I'm having trouble creating the RSS declaration at the beginning of the file as can be seen [here](https://gist.github.com/iwek/3977831). The `channel` element is my root but I can't figure out how to get the following part in:\r\n\r\n```\r\n<rss version=\"2.0\"\r\n\txmlns:excerpt=\"http://wordpress.org/export/1.2/excerpt/\"\r\n\txmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\r\n\txmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\r\n\txmlns:dc=\"http://purl.org/dc/elements/1.1/\"\r\n\txmlns:wp=\"http://wordpress.org/export/1.2/\"\r\n>\r\n```\r\n\r\nMy code currently is as follows:\r\n\r\n```\r\nvar root = builder.create( 'channel', { version: '1.0', encoding: 'UTF-8' } );\r\n// Add basics\r\nroot.ele( 'title', 'WIRED' );\r\nroot.ele( 'link', 'http://wired.local' );\r\nroot.ele( 'description', '' );\r\n// Replace with JS date\r\nroot.ele( 'pubDate', 'Fri, 24 Apr 2015 17:40:38 +0000');\r\nroot.ele( 'language', 'en-US' );\r\nroot.ele( 'wp:wxr_version', '1.2' );\r\nroot.ele( 'wp:base_site_url' , 'http://wired.local' );\r\nroot.ele( 'wp:base_blog_url' , 'http://wired.local' );\r\nroot.ele( 'generator', 'http://wordpress.org/?v=4.0.3' );\r\nroot.ele( 'wp:author', '' );\r\n\r\n_.forEach( noms, function( nom, index ) {\r\n\troot.ele( {\r\n\t\titem: {\r\n\t\t\ttitle: nom.title,\r\n\t\t\t'excerpt:encoded': { '#cdata': nom.excerpt },\r\n\t\t\t'wp:status': 'publish',\r\n\t\t\t'wp:post_type': 'post',\r\n\t\t\t'wp:post_name': nom.slug\r\n\t\t}\r\n\t} );\r\n} );\r\n```\r\n\r\nIs there a way to add a \"second\" root (i.e. just a bare `rss` element with those attributes) before my `channel`? \r\n\r\nAny help would be appreciated. Thank you."}}