I'm facing an issue with my XML root tag using python.
Here is my code :
nsmap = {"xsi": "https://www.org/4001/XMLSchema-instance"}
root = etree.Element('data-set', nsmap=nsmap)
The output is:
<data-set xmlns:xsi="https://www.org/4001/XMLSchema-instance">
<record>
Where url is in double quote.
But I want url to be in single quote like :
<data-set xmlns:xsi='https://www.org/4001/XMLSchema-instance'>
<record>
I've tried with this :
nsmap = {"xsi": /'https://www.org/4001/XMLSchema-instance/'}
root = etree.Element('data-set', nsmap=nsmap)
But it is not working