News for hackers. Stuff that matters.
Re:Xee: A Modern XPath and XSLT Engine in Rust by gschizas on Saturday March 29, 2025 @12:32PM (#43516695)
> Sure, but does not XML have the exact same problem because everything is just a text?

No, you can specify what type an attribute (or element) is in the XSD (for example, xs:dateTime or xs:date). And there is only one way to specify a date in XML, and it's ISO8601. Of course JSON schema does exist, but it's mostly an afterthought.

Re:Xee: A Modern XPath and XSLT Engine in Rust by winstonewert on Tuesday April 01, 2025 @05:31PM (#43551558)
It sounds to me like you are thinking something like: if they use XML, they'll have a well defined schema and will follow standardized XML types. But if they use JSON they may not have a well-defined schema at all, and may not follow any sort of standardized formats.

But to my mind, whether they have a well-defined schema and follow proper datatypes really has very little to do with the choice of XML or JSON.