Re:OPML Is Underrated
by ponderings on Saturday February 10, 2024 @04:13PM
(#39330280)
On the other hand, it wouldn't take much doing at~all to modify something that outputs json into something that outputs xml.
Re:OPML Is Underrated
by billywhizz on Saturday February 10, 2024 @05:12PM
(#39330711)
yes. back in the day i would tend to wrap my database api in xml first in a standardised way and then i could just use xslt to return json or other formats from the api depending on the mime types requested by client. this fits in nicely with fielding's REST principles. all those technologies (HTTP/REST, XML, XPath, XML Schema, XSLT) actually work very nicely together and allow you to build nice systems that are very flexible, easy to integrate with and easy to change, even though they can be hard to make fast. maybe "move fast, break things" was a bad idea? =)
Re:OPML Is Underrated
by cryptonector on Saturday February 10, 2024 @05:43PM
(#39330905)
Why make your payloads bigger though?
Re:OPML Is Underrated
by billywhizz on Saturday February 10, 2024 @08:27PM
(#39331886)
yes, there's definitely a bandwidth overhead with xml compared to json. that was an important factor in the shift i suppose. but then we have things like graphql, which has pretty much erased all those gains. you can also do tricky things like using binary on the wire and transforming at the endpoints.
it would be nice to see if fundamental xml tech can be improved in a new hardware and software environment. afaik, there hasn't been much if any innovation in that space in recent times. would love to know if there has.
I feel like this is being rediscovered right now with htmx. Servers having their responses updated to give back html markup to include.
Re:OPML Is Underrated
by Paua_Fritter on Wednesday February 14, 2024 @07:26AM
(#39369046)
That functionality does in fact exist in the current versions of those programming languages, i.e. XSLT 3.0 and XPath version 3.1
Maybe what's needed is an extension to XSLT/XPath to consume JSON and transform it to XML.