I'm using xmlwriter in order to edit xml files, but I need it to maintain a specific format for future comparisons with other xml files.
I'm using the following code to write empty elements:
w.WriteStartElement("description");
w.WriteEndElement();
the result in the xml file is:
<description />
which would normally will be ok, but I need It to look like that:
<description/>
without the space character after "description".
Is there any way to do it?