Python etree control empty tag format

hanhead

New Member
When creating an XML file with Python's etree, if we write to the file an empty tag using \[code\]SubElement\[/code\], I get:\[code\]<MyTag />\[/code\]Unfortunately, our XML parser library used in Fortran doesn't handle this even though it's a correct tag. It needs to see:\[code\]<MyTag></MyTag>\[/code\]Is there a way to change the formatting rules or something in etree to make this work?
 
Back
Top