this post was submitted on 08 Sep 2024
1230 points (98.3% liked)

Programmer Humor

32400 readers
432 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 2 months ago* (last edited 2 months ago) (1 children)

Hmm, so in tree terms, each node has two distinct types of children, only one of which can have their own children. That sounds more ambiguity-introducing than helpful to me, but that's just a matter of taste. Can you do lists in XML as well?

[โ€“] [email protected] 2 points 2 months ago

No arrays are not allowed. Attributes can only be strings. But the children are kind of an array.