[英]CSV to XML Using Client-Side Scripting
I'm looking to write a small website that will convert a csv file to xml.我正在寻找一个小型网站,它将 csv 文件转换为 xml。 I know of easy ways to do this with PHP, however I won't have a server to run it and something like XAMPP cannot be installed on the computer, so it needs to be something that doesn't need a server.
我知道使用 PHP 执行此操作的简单方法,但是我没有服务器来运行它,并且无法在计算机上安装 XAMPP 之类的东西,因此它需要是不需要服务器的东西。 Is there any code available to do that already?
是否有任何代码可以做到这一点? Maybe a jquery plugin?
也许是 jquery 插件?
Take a look at this library.看看这个库。 It will convert CSV to JSON.
它将 CSV 转换为 JSON。 From there, you can then create XML (or anything else for that matter)
然后,您可以从那里创建 XML (或其他任何东西)
https://github.com/archan937/csonv.js https://github.com/archan937/csonv.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.