XML is well regarded in the enterprise and languages like JAVA, C#, and VB.NET handle is spectacularly as an exchange format. I think it's bad reputation comes from anyone not using an enterprise language because the support just isn't there. I recall working with a partner who we were doing an identity federation with. Our system was using WS-Trust which is a SOAP/XML protocol. It wasn't ideal but everyone seemed to…
How to Avoid Being Called a Bozo When Producing XML (2005)
31–40 of 255 posts
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#32XML is well regarded in the enterprise and languages like JAVA, C#, and VB.NET handle is spectacularly as an exchange format. I think it's bad reputation comes from anyone not using an enterprise language because the support just isn't there. I recall working with a partner who we were doing an identity federation with. Our system was using WS-Trust which is a SOAP/XML protocol. It wasn't ideal but everyone seemed to…
Well, XML is complicated, so it's hard to build support for, and it's verbose, so it's heavy on the wire. Frankly, I think JSON is a better format in most contexts.
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#33Why would anyone choose to use XML over JSON, other than for RSS?
So far as I know JSON doesn't allow for that.
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#34XML is well regarded in the enterprise and languages like JAVA, C#, and VB.NET handle is spectacularly as an exchange format. I think it's bad reputation comes from anyone not using an enterprise language because the support just isn't there. I recall working with a partner who we were doing an identity federation with. Our system was using WS-Trust which is a SOAP/XML protocol. It wasn't ideal but everyone seemed to…
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#35Earlier quoted context omitted.
Well, XML is complicated, so it's hard to build support for, and it's verbose, so it's heavy on the wire. Frankly, I think JSON is a better format in most contexts.
The biggest problem with XML is that it's a node labeled tree that makes the schema choice between leaf node and attribute for scalar data almost arbitrary, whereas JSON is an edge labeled tree without the same choice. Most programming languages use edge labeled graphs for in memory data structures, so the semantic distance is lower with JSON.
As a result, in my experience, JSON tends to be more robust in real world use - even when a schema is available.
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#36Earlier quoted context omitted.
Well, XML is complicated, so it's hard to build support for, and it's verbose, so it's heavy on the wire. Frankly, I think JSON is a better format in most contexts.
The biggest problem with XML is that it's a node labeled tree that makes the schema choice between leaf node and attribute for scalar data almost arbitrary, whereas JSON is an edge labeled tree without the same choice. Most programming languages use edge labeled graphs for in memory data structures, so the semantic distance is lower with JSON.
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#37Why would anyone choose to use XML over JSON, other than for RSS?
JSON, remember, was written for a language without even firm object structures. It is great in that environment but all exchange formats require external knowledge to validate, and XML unlike the others provides a way to do that.
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#38Why would anyone choose to use XML over JSON, other than for RSS?
Re: How to Avoid Being Called a Bozo When Producing XML (2005)
#39Why would anyone choose to use XML over JSON, other than for RSS?
For one, JSON didn't exist 15 years ago. For another, JSON didn't have validation or schemas 5 years ago.
As I usually say, JSON is for relatively free-form, dynamically typed languages, but if one side is uses a statically typed language, XML is probably the better choice.