Is yaml2xml / xml2yaml implementation available?

What yaml2xml and xml2yaml tools are available?

I googled this one , but it does not work correctly.

+5
source share
1 answer

Have you tried yaml2xml.py?

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=21461

The script issue mentioned on this page, if you try this version, it should work:

#!/usr/bin/python
from yaml import load
from gnosis.xml.pickle import dumps
from sys import stdin
print dumps(load(stdin.read()))

Make sure that the appropriate modules are installed, then make it executable and run:

chmod +x ./yaml2xml.py
cat ./inputfile.yaml | ./yaml2xml.py
+3
source

All Articles