Re:When XML Beats JSON: UI Layouts
by m1el on Wednesday October 30, 2019 @10:31AM
(#21398146)
> The first argument is the name of the element, but what is the second one?
If the second argument is an object/dictionary, it's attributes. Otherwise, it's the first child. Alternatively, the ambiguity can be resolved by using null/0 instead of empty attributes.
If the second argument is an object/dictionary, it's attributes. Otherwise, it's the first child. Alternatively, the ambiguity can be resolved by using null/0 instead of empty attributes.