Skip to content

Commit

Permalink
Tweaking the documentation for the source argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoramite committed Mar 28, 2012
1 parent 6763937 commit 66f7c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ _Note:_ The following example uses the [`request`][1] package to simplify the ht


## Module ## Module


### xml2object(elements, source) ### xml2object(elements[, source])


Constructor for creating an instance of the xml parser. Constructor for creating an instance of the xml parser.


The source argument is optional and can be a path to an xml file or an input stream. The source argument is can be a path to an xml file or an input stream.


If no source is specified you can set a readable Stream to `.source` or pipe a Stream into the `.saxStream`. If no source is specified you can set a readable Stream to `.source` or pipe a Stream into the `.saxStream`.


Expand All @@ -94,7 +94,7 @@ If no source is specified you can set a readable Stream to `.source` or pipe a S


### .source ### .source


The input Stream used as a source for parsing. The input Stream used as a source for parsing. Can be set to a xml file path or a readable stream.


### .saxStream ### .saxStream


Expand Down

0 comments on commit 66f7c7a

Please sign in to comment.