#!/usr/bin/env python #coding: utf-8 import xmltodict xml = '''\ Like Silk http://like.silk.to/ ''' d = xmltodict.parse(xml) print d print x = xmltodict.unparse(d) print x