I hereby claim:
- I am jamesjarvis on github.
- I am jamesjarvis (https://keybase.io/jamesjarvis) on keybase.
- I have a public key ASAnjvwPPwFWiQc1tF2eAHqjxfhOpB3ndzBk94iYk__DLAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def dict_to_xml(v, passed_tag=None) -> str: | |
| '''Converts a python dictionary into xml output''' | |
| open_tag = lambda tag: '<' + tag + '>' | |
| close_tag = lambda tag: '</' + tag + '>' | |
| create_tag = lambda key,v: open_tag(key) + str(v) + close_tag(key) | |
| xml = "" | |
| if type(v) is dict: | |
| for key,vl in v.items(): | |
| if type(vl) is list: |