News for hackers. Stuff that matters.
Re:Xee: A Modern XPath and XSLT Engine in Rust by Mountain_Skies on Friday March 28, 2025 @03:15PM (#43509004)
Microsoft seems to be especially obsessed with making as much as possible into attributes. Makes me wonder if there is some hidden historical reason for that like an especially powerful evangelist inside the company that loved attributes during the early days of adopting XML.
Re:Xee: A Modern XPath and XSLT Engine in Rust by int_19h on Friday March 28, 2025 @06:06PM (#43510324)
Attributes are way shorter to write.

That said, these days most Microsoft XML dialects are actually XAML-based, and in XAML attributes are basically syntactic sugar - you can write:

  <Foo Bar="123">
or

  <Foo>
    <Foo.Bar>123</Foo.Bar>
  </Foo>

(the dot in the syntax makes it possible for the XAML parser to distinguish nested elements that represent properties from nested elements that represent child objects)