oozcitak / xmlbuilder-js

An XML builder for node.js
MIT License
918 stars 107 forks source link

The generated xml has not been exported #221

Closed laumega1 closed 5 years ago

laumega1 commented 5 years ago

Once I generate my xml code, the most I get is to take it out on the screen through the console but what I want is to be able to have a physical file with this code. How can it be done? I print it with this command line: console.log (doc.toString ({pretty: false}));

OctavioMaia commented 5 years ago

This should help you out https://flaviocopes.com/node-writing-files/

Just replace the content with your generated XML

laumega1 commented 5 years ago

Esto debería ayudarlo a salir https://flaviocopes.com/node-writing-files/

Simplemente reemplaza el contenido con tu XML generado

Thank you very much for the response, it has been helpful