Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add terser version

  • Loading branch information...
commit 7faebd2361f7b0a7398ce4029dc16544729f1a0e 1 parent e0ab20b
@oozcitak authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.md
View
11 README.md
@@ -48,6 +48,17 @@ will result in:
</root>
```
+You can specify attributes and text at element creation so you can write the above code as:
+
+``` js
+doc.begin('root', {'version': '1.0'})
+ .ele('xmlbuilder', {'for': 'node-js'})
+ .ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git')
+ .up()
+ .up()
+ .ele('test', 'complete');
+```
+
If you need to do some processing:
``` js
Please sign in to comment.
Something went wrong with that request. Please try again.