Is XML the least efficient way to encode/transfer data?
>>59541301
probably yes
>>59541301
>>59542667
That's not the point of XML. It's supposed to be easily humanly readable. And declarative.
I personally believe ALL declarative languages are BORING.
e.g. look at SQL, it's literally the boringest shit ever.
>>59542691
You make no sense. Name one data format which isn't declarative.
It's a fucking markup language, not a programming language.
>>59541301
at least it's machine readable.
There are companies that transfer data by sending pdfs per mail which have to be processed manually.
>>59542691
>It's supposed to be easily humanly readable.
No no, it is supposed to be easily parseable by machine. It is also human readable, but not easily. Way too bulky.
Hardly. XML strikes a balance between human readability and standardized parsing without going pants-on-head retarded with the markup bloat (like RTFs do). If you've ever had to manually decode an efficiently-packed file-stream, you'd understand why XML is not just a human convenience, but also a development one (though JSON is usually better for that).
EHLO 4chan
I think email is also pretty shit
TBHFAMPAI
It's very inefficient.
But it's very neatly organised.
XML was created so idiots could parse too.
i have never seen a XML file that was readable
Yes, but unreadable as fuck.
>>59544934
What do you people expect? A novel?
>>59544968
A JSON document, I suppose.
>>59541301
Depends on the data.
It's still the best thing for actual marked up text, like type setting data with multiple targets.
I'm pretty sure XML is only meant to be generated by programs and read by programs. If anyone has to manually write these things or read them in text editors then I truly feel sorry for you.
>>59545782
this. i dont understand the point of this thread. it's not meant to be read or written by people. json isn't any more readable.
The Brazilian government emits 10 million tax invoice/receipts per day using XML. No problem whatsoever. And it's a big fucking document.
https://www.webdanfe.com.br/danfe/exemplos/NFe_assinada.html
>>59545782
Yeah, it's *meant* to be generated by programs and read by programs.
In practice though, fucking dumb asshole java developers will use it for *everything*, especially config files, when they could have used yaml, which is even more easily serialized / templated
Fuck Tomcat, fuck it to death
>>59541301
it's not supposed to be efficient, it's supposed to be human-readable and platform-independent