Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added XML version to usage example

  • Loading branch information...
commit 0d73b3e3b8f4a065a4822df4d62823c6b6f5fb80 1 parent 3009195
@oozcitak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  README.md
View
3  README.md
@@ -22,7 +22,7 @@ As a result, version from v0.1.3 are **not** compatible with previous versions.
var builder = require('xmlbuilder');
var doc = builder.create();
-doc.begin('root')
+doc.begin('root', {'version': '1.0'})
.ele('xmlbuilder')
.att('for', 'node-js')
.ele('repo')
@@ -39,6 +39,7 @@ console.log(doc.toString({ pretty: true }));
will result in:
``` xml
+<?xml version="1.0"?>
<root>
<xmlbuilder for="node-js">
<repo type="git">git://github.com/oozcitak/xmlbuilder-js.git</repo>
Please sign in to comment.
Something went wrong with that request. Please try again.