Python Notes/yaml2xml.py
From Federal Burro of Information
Jump to navigationJump to search
- !/usr/bin/python
from yaml import load
from gnosis.xml.pickle import dumps
- from sys import stdin
import sys
data = sys.stdin.readlines()
- print dumps(load(stdin.read()).next())
dumps(data)