News for hackers. Stuff that matters.
Re:Hyperview – Native mobile apps, as easy as creating a web... by withinboredom on Wednesday January 08, 2025 @08:11AM (#42633803)
At least with XML, you can have custom datatypes, not just strings and numbers and booleans.

In all seriousness, everything in JSON can be expressed as XML; but not necessarily the other way around.

Re:Hyperview – Native mobile apps, as easy as creating a web... by iforgot22 on Thursday January 09, 2025 @03:24AM (#42643060)
Other way around works too (I gave an example above), it's just not pretty in either direction.

XML makes sense for open-ended, human-written things like documents or apps. It doesn't work so well for APIs and other machine-read/written things where you'd normally use JSON.

Re:Hyperview – Native mobile apps, as easy as creating a web... by j45 on Saturday January 11, 2025 @05:22AM (#42664806)
So incredibly true. And that one time you see what XML can do that little else can.

Like that time there were hundreds of forms to build, refused, held a silent protest until a reasonable way presented itself.

Enter "XML Form Template" or "XML Form Definition.", A form is generated from the XML in html, filled in, and on submit, the XML is filled back in.

Built one form renderer and done. Never got old watching it.

XForms (W3C standard)

https://www.w3.org/TR/2003/REC-xforms-20031014/slice2.html