Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				 py2js27247yThere are many things that can't be done with JSON but easily with XML. Haven't used those things yet. py2js27247yThere are many things that can't be done with JSON but easily with XML. Haven't used those things yet.
- 
				
				 Lythenas2377yAs my teacher once said: to learn HTML5 you need to learn HTML4.* Lythenas2377yAs my teacher once said: to learn HTML5 you need to learn HTML4.*
 Following that logic everyone should first learn XML
- 
				
				I hate SOAP. Only had the displeasure of interacting with it about 2 or 3 times in the last 9 years and I dread ever having to again. It keeps me up at night. Lol
- 
				
				 kjdion843057y@C0D4 it's ironic that it is called SOAP when it is the filthiest thing in the world. kjdion843057y@C0D4 it's ironic that it is called SOAP when it is the filthiest thing in the world.
- 
				
				freerider217yBecause history repeats itself?
 
 Look at LISP. It started as a practical mathematical notation for computer programs, influenced by the notation of Alonzo Church's lambda calculus. ^1
 
 In other words a formal language to express stuff. XML is a formal language to express stuff.
 
 ^1 https://en.wikipedia.org/wiki/...
- 
				
				 alkuzad14507yJson is not ideal cause: alkuzad14507yJson is not ideal cause:
 
 - no multiline strings
 
 - lack of comments
 
 - lack of official scheme validation (json-scheme is independent, W3C guards both xml and xsd)
 
 - has to use double quotes which are problematic to integrate with other languages which also use them (bash for example)
 
 - items in objects are unordered which can cause problems when you re-generate on same data and suddenly diff is so much bigger as it should be. It was not designed for people to use directly.
 
 - no XPath search (also made officially by W3C)
 
 - value of object is one of 'value', 'text', 'name', 'title' or any other freely chosen by developer. XML always uses just "value"
- 
				
				@alkuzad What's that last thing? What do you mean that the value is one of ...?
- 
				
				 alkuzad14507y@ScriptCoded json uses object with key-value assignment. XML uses tags which have both key value assignments (called tag parameters) and value (HTML example: anchor text is value and destination is src tag param). alkuzad14507y@ScriptCoded json uses object with key-value assignment. XML uses tags which have both key value assignments (called tag parameters) and value (HTML example: anchor text is value and destination is src tag param).
- 
				
				 mrDev1197yBecause even if you stop using it, the concept will not disapear from existance, therefore it cannot "not exist anymore" mrDev1197yBecause even if you stop using it, the concept will not disapear from existance, therefore it cannot "not exist anymore"
- 
				
				 mt3o18767yAnother thing is that XML is trivial to parse, JSON isn't. Trivial XML parser can be written in bash with few lines of code. More advanced tools provide full SAX/StAX streaming and... mt3o18767yAnother thing is that XML is trivial to parse, JSON isn't. Trivial XML parser can be written in bash with few lines of code. More advanced tools provide full SAX/StAX streaming and...
 There is a universal way to represent XML as in-memory object (DOM), for json, it isn't.
Related Rants









 I am Computer Science Student
Yesterday I asked question to my classmates, what is Linux,
here's some(non-fo...
I am Computer Science Student
Yesterday I asked question to my classmates, what is Linux,
here's some(non-fo...
 A possibile interview answer
A possibile interview answer
 Exactly 😂😂
Exactly 😂😂
People bashing JS and PHP while I wonder why XML still exist.
rant
question
meaning of life