What is wrong with this xml format ?
What is wrong with this xml format ?
(OP)
I have a python script that loads a pdf converts it to base 64 and puts it into an xml and makes a POST Request to a link.
With my XML formatting I get 400 code Bad Request.
This is my XML, is it something wrong ? Am I missing something ?
xml = """<header xmlns=\"mfp:anaf:dgti:spv:reqUploadFisier:v1\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<upload fisier=\"" +"""+b64+"""+ "\"/>\
</header>"""
The three quotes mean multi line in Python
Thanks in advance
With my XML formatting I get 400 code Bad Request.
This is my XML, is it something wrong ? Am I missing something ?
xml = """<header xmlns=\"mfp:anaf:dgti:spv:reqUploadFisier:v1\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<upload fisier=\"" +"""+b64+"""+ "\"/>\
</header>"""
The three quotes mean multi line in Python
Thanks in advance
RE: What is wrong with this xml format ?
That does not really look like syntactically valid XML. Better double check those triple quotes :
CODE --> SerbanC.py
CODE --> command line
Feherke.
feherke.github.io