Permalink
Browse files

Updating the readme to show the source setter.

  • Loading branch information...
1 parent a38578f commit f37a5b548b031bbc9fcc8e1a5d03023e6f199315 @Zoramite Zoramite committed Mar 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 readme.md
View
@@ -96,6 +96,10 @@ If no source is specified you can set a readable Stream to `.source` or pipe a S
The input Stream used as a source for parsing. Can be set to a xml file path or a readable stream.
+ var parser = new xml2object([ 'animal' ]);
+
+ parser.source = 'myAnimals.xml';
+
### .saxStream
The underlying sax Stream. Data can be piped directly to the sax Stream using the `pipe()`.

0 comments on commit f37a5b5

Please sign in to comment.