Hello,
I am trying to generate an XML file using XMLWriter component having empty tags in short form instead of long but I cannot find the setting. Is there a setting to change the XMLWriter long form default?
Many Thanks,
Parsa
Hello,
I am trying to generate an XML file using XMLWriter component having empty tags in short form instead of long but I cannot find the setting. Is there a setting to change the XMLWriter long form default?
Many Thanks,
Parsa
Hi Parsa,
currently there is no such setting. However I created improvement request - https://bug.javlin.eu/browse/CLO-312
From the XML standpoint, there is no difference between and . The is just a short version of the same; see http://www.w3.org/TR/2006/REC-xml11-20060816/#IDAHKIS for details.
When parsing the using parsers such as SAX, you should still receive both events “start element” and “end element”. Similarly, there will not be any difference in the DOM tree built based on the two above representations of the tags.
Jaroslav,
Thank you for considering this.
Jan,
Thank you for your reply. You are totally right but having the long form increases the file size significantly specially when there are considerable number of empty tags and the client would like to include the empty tags in the XML file.