开发者

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

开发者 https://www.devze.com 2023-03-31 16:34 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消