xml-to-json-stream
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "xml-to-json-stream", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple module to convert XML to JSON with javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # xml-to-json-stream | ||
xml-to-json only has two public methods `xmlToJson` and `createStream` . | ||
xml-to-json-stream only has two public methods `xmlToJson` and `createStream` . | ||
Use xmlToJson if you simply want to pass in some XML and access the resulting JSON in the callback function. | ||
@@ -16,3 +16,3 @@ Use createStream if you need to pipe some readable XML stream into a writable destination and convert the XML to JSON along the way. | ||
```javascript | ||
const xmlToJson = require('xml-to-json'); | ||
const xmlToJson = require('xml-to-json-stream'); | ||
const parser = xmlToJson({attributeMode:false}); | ||
@@ -52,3 +52,3 @@ | ||
```javascript | ||
const xmlToJson = require('xml-to-json'); | ||
const xmlToJson = require('xml-to-json-stream'); | ||
const parser = xmlToJson({attributeMode:false}); | ||
@@ -72,3 +72,3 @@ | ||
```javascript | ||
const xmlToJson = require('xml-to-json'); | ||
const xmlToJson = require('xml-to-json-stream'); | ||
const parser = xmlToJson(); | ||
@@ -89,3 +89,3 @@ const stream = parser.createStream(); | ||
```javascript | ||
const xmlToJson = require('xml-to-json'); | ||
const xmlToJson = require('xml-to-json-stream'); | ||
const fs = require('fs'); | ||
@@ -134,3 +134,2 @@ | ||
``` | ||
* If an element contains a textNode and attributes the textNode will have the key textNode | ||
@@ -137,0 +136,0 @@ ``` |
23772
153