Re:YAML: Probably not so great after all
by twic on Sunday August 18, 2019 @06:32PM
(#20733375)
Particularly annoying is that there's no way to do lists with attributes. Looks good:
Oh no:
Or is it one of:
Or give up and use elements:
Hold on, should there be a container?
XML really needs either richer attributes, or no attributes.
[ Parent
| on HN ]
Replace with "Element" with "Class" and "Attribute" with "Property" in your examples.
It's your job to decide how the data should be structured, in any language.
I would do the following :
<user name="alice">
<groups>
<group uid="wheel"/>
<group uid="admin"/>
<group uid="sudoers"/>
</groups>
</user>