有哪些 yaml2xml 和 xml2yaml 工具可用?
我用 google 搜索了此,但它无法正常工作。
What yaml2xml and xml2yaml tools are available?
I googled this, but it's not working correctly.
您尝试过 yaml2xml.py 吗?
http://www.ibm.com/developerworks/forums/thread.jspa ?messageID=21461
该页面中提到的脚本有问题,如果您尝试此版本,它应该可以工作:
#!/usr/bin/python from yaml import load from gnosis.xml.pickle import dumps from sys import stdin print dumps(load(stdin.read()))
确保安装了适当的模块,然后使其可执行并运行它:
chmod +x ./yaml2xml.py cat ./inputfile.yaml | ./yaml2xml.py
Have you tried yaml2xml.py?
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=21461
There's a problem with the script mentioned in that page, if you try this version it should work:
Make sure the appropriate modules are installed, then make it executable and run it:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
您尝试过 yaml2xml.py 吗?
http://www.ibm.com/developerworks/forums/thread.jspa ?messageID=21461
该页面中提到的脚本有问题,如果您尝试此版本,它应该可以工作:
确保安装了适当的模块,然后使其可执行并运行它:
Have you tried yaml2xml.py?
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=21461
There's a problem with the script mentioned in that page, if you try this version it should work:
Make sure the appropriate modules are installed, then make it executable and run it: