Firebase : json to xml not working in Windows

Hello,

As per mentioned here, i am trying to convert json file to xml but its not working in Windows cmd.

Error:
File "<string>", line 1
    import urllib; import sys; sys.argv = [transpy, -i, ./google-services.json, -o, ./googleservices.xml]; s = urllib.urlopen(https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py).read(); exec(s);
                                                        ^
SyntaxError: invalid syntax

Below command i am using,

python -c 'import urllib; import sys; sys.argv = ["transpy", "-i", "./google-services.json", "-o", "./googleservices.xml"]; s = urllib.urlopen("https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py").read(); exec(s);'

In MAC its working fine.

thanks for feedback, we will look into this issue.

have a try.

python -c """import urllib; import sys; sys.argv = ['transpy', '-i', './google-services.json', '-o', './googleservices.xml']; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/tools/generate_xml_from_google_services_json.py').read(); exec(s);"""
1 Like

Yes, working fine.
Pls mention in doc too.

yep, we will.