3 ms·
this is a sweeping statement, and not true. for example, i often use xml documents with no text - for example <contraindications> <pregnancy/> </contraindica
by FigmentEngine 9y ago
this is a sweeping statement, and not true.
for example, i often use xml documents with no text - for example
<contraindications>
<pregnancy/>
</contraindications>
and really the rule of thumb about attributes vs elements is more about if you are going to need chikdren of item - easier to extend elements with child nodes..
- JetSpiegel 9y agoMight as well use YAML or TOML in that case. Same use case and you are not limited to ASCII strings for identifiers.
- fusiongyro 9y agoYou aren't limited to ASCII for XML either.
- jwilk 9y agoRight. Almost all characters are permitted in names, except those which either are or reasonably could be used as delimiters. The intention is to be inclusive rather than exclusive, so that writing systems not yet encoded in Unicode can be used in XML names Source: https://www.w3.org/TR/REC-xml/#sec-common-syn https://www.w3.org/TR/REC-xml/#sec-common-syn