简体   繁体   中英

How would I generate an xml file with node.js and put it in a public directory on my server?

I want to take some data, update/create an xml file with it in node. Then I want to save it to a public directory.

How would I do this?

There are currently 13 XML modules for Node.js listed at the modules directory. Surely one of those is sufficient to your needs. Some are SAX, some are DOM, some are both; some are just parsers, others have generation capability; some are synchronous and others asynchronous. Something there has to work for you, if only libxmljs 's full capabilities.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM