3 ms·
Again we come back to it being a markup language. In markup, it's usually pretty clear what is data and metadata: <font style="bold">hello world</font> and not
by inigyou 5mo ago
Again we come back to it being a markup language.
In markup, it's usually pretty clear what is data and metadata: <font style="bold">hello world</font> and not <font><style>bold</style>hello world</font> because you don't want the word "bold" to literally appear in the document.
In structured data, the distinction is redundant.
- HarHarVeryFunny 5mo agoNot always. For example, XML itself doesn't have types, so maybe you need to use attributes to store the data type (e.g. what if you need to do to lossless JSON <-> XML conversion).
- inigyou 5mo agoand what is the difference between <data type="dict"> and <data><type>dict</type> and <dict>?
- HarHarVeryFunny 4mo agoIf you use tag "type" rather than attribute "type", then you are going to clash with representing data that itself needs to use tag "type".