* Parse XML data stream to JS object * @param {fs.ReadableStream} xmlDataStream
(xmlDataStream)
| 52 | * @param {fs.ReadableStream} xmlDataStream |
| 53 | */ |
| 54 | parseStream(xmlDataStream) { |
| 55 | if (!isStream(xmlDataStream)) throw new Error("FXP: Invalid stream input"); |
| 56 | |
| 57 | const orderedObjParser = new Xml2JsParser(this.options); |
| 58 | orderedObjParser.entityParser.addExternalEntities(this.externalEntities); |
| 59 | return orderedObjParser.parseStream(xmlDataStream); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Add Entity which is not by default supported by this library |
nothing calls this directly
no test coverage detected