Skip to content

Instantly share code, notes, and snippets.

@netoxico
netoxico / xml2json.py
Created February 4, 2016 00:23
xml2json.py
#!/usr/bin/env python
# coding: utf-8
import xmltodict
from xmltodict import unparse
XML = """
<SOAP-ENV:Envelope xmlns:tns="http://MMIT.Gateway.WebServices" xmlns:ns0="http://schemas.multi-mit.com/DataFormat" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://MMIT.Gateway.WebServices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
@Dierk
Dierk / build.gradle
Created October 7, 2011 22:43
build.gradle for setting up a new gradle-based project
apply plugin:'groovy'
apply plugin:'idea'
repositories { mavenCentral() }
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.2'
}
task makeDirs(description:'make all dirs for project setup') << {