[Home] [By Thread] [By Date] [Recent Entries]

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev <xml-dev@l...>
  • Date: Tue, 25 Jan 2022 10:27:00 +1100

I would say JSON is clearly more expressive from the POV of how many types of data and structures can be represented directly (i.e. without some extra schema layer) with the available delimiters.   XML only has data content and attribute values, and all are strings. JSON has numbers and arrays etc, extra to XML.  

I would say XML is more expressive from the POV of the purpose-roles of data that can be represented directly with the available delimiters. JSON has no distinctions here. XML has content, attribute values, comments and PIs (and declarations, if you count DTDs). Each role is a pre-classification of the data to allow a separation of concerns. (SGML had even more lifecycle roles, being able to mark sections as temporary or to be ignored.)

XML is also more expressive from the POV of what constraints can be enforced: because of DTDs which are part of XML. (Again, XSD is irrelevent to the question of the expressiveness of XML on its own.)

Rick

On Mon, 24 Jan. 2022, 10:15 Roger L Costello, <costello@m...> wrote:
Hi Folks,

An XML language can be created to express Bookstores. Another to express network router data. Another for census data. And so forth.

The set of XML languages that has already been created is vast and diverse.

How big is the set of possible XML languages?

How big is the set of possible JSON languages?

Is the set of possible XML languages a superset of the set of possible JSON languages? If yes, would you give an example of an XML language for which there is no possible JSON language?

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member