Representing the components of a string in XML -- should delimiters be represented?
Roger L Costello <[email protected]> Sun, 26 Feb 2023 13:40:42 +0000
| Newsgroups | gmane.text.xml.devel |
|---|---|
| Message-ID | <SA9PR09MB59523B7E68E1FBE7B0E28BDBC8AE9@SA9PR09MB5952.namprd09.prod.outlook.com> |
Hi Folks, I am creating an XML representation of the UNIX printf conversion specifier. Here is a sample conversion specifier and its components: [cid:[email protected]] % and . are delimiters. Should they be represented in XML? Which of the following XML representations is better? If you assert that one is better than another, please explain - in simple, concrete terms - why it is better? (a) Does not represent the delimiters in XML: <conversion_specification> <flag>+</flag> <width>7</width> <precision>3</precision> <specifier>d</specifier> </conversion_specification> (b) Does represent the delimiters in XML: <conversion_specification> <start_of_specifier>%</start_of_specifier> <flag>+</flag> <width>7</width> <start_of_precision>.</start_of_precision> <precision>3</precision> <specifier>d</specifier> </conversion_specification> /Roger
image002.png
(image/png, 15.5 KB) - not displayed