#!/usr/bin/env python """ Sample code to convert YAML to XML and XML to YAML using a canonical form. The canonical YAML representation of an XML element is a dictionary (mapping) containing the following key/value pairs: (1) "name" (required) -- a string. (2) "attributes" (optional) -- a dictionary (mapping) of name/value pairs. (3) "text" (optional) -- a string. (4) "children" (optional) -- a sequence of dictionaries (mappings). For usage information, type: python convertyaml_map.py Usage: python convertyaml_map.py