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:
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
source
share