Using XMLWriter is the optimal solution.
The issue arises from not including both a link reference and a require/import statement, causing the compiler to be unfamiliar with XMLWriter.
Here are the necessary references for utilizing XMLWriter:
///<reference path="../typings/modules/XMLWriter/index.d.ts" />
Require statement to load XMLWriter:
var XMLWriter = require('XMLWriter');
To proceed, follow these steps:
- First, install typings
- Then, install XMLWriter using typings
- Add a script reference for XMLWriter
- Include an import/require statement to import the XMLWriter module