read-xml
Read a xml file respecting its encoding information
Usage
simple-iso-8859-1.xml
ácentó y la letra ñ
Without this module the above xml file would be read incorrectly by the standard fs
module, because node.js only supports some encodings in its core
<!-- output produced by fs.readFile/fs.readFileSync --> �cent� y la letra �
Basic API
'use strict'; var fs = path = xmlReader = ; var FILE = path; // pass a buffer or a path to a xml filexmlReader;
Streaming API
'use strict'; var fs = path = xmlReader = ; var FILE = path; var decodedXMLStream = fs; decodedXMLStream; decodedXMLStream;
Supported encodings
All encodings supported by iconv-lite
License
See license