[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How long before services sending/receiving XML mightneed r

  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • To: xml-dev@lists.xml.org
  • Date: Sun, 14 Nov 2021 12:38:11 -0500

Re:  How long before services sending/receiving XML mightneed r
Stephen's telling of the JSON history is correct - Douglas Crockford
extracted a structure that was already defined in ECMAScript (aka
JavaScript) standards and not easily changed except for by reduction.

YAML, which evolved from the Simplified Markup Language conversation on
this list, deliberately did not align itself with XML structures.  That
was a crowd of people who had worked a lot with XML and wanted something
different.

By coincidence, of course, JSON (minus the original comments facility)
is a subset of YAML.

Thanks,
Simon

On 11/14/2021 10:24 AM, Stephen D Green wrote:
JSON, it is said, was discovered, not invented. It was already
implicit in Javascript. So there has never been the opportunity to
align it better with XML because Javascript was already defined when
XML was invented. So it seems to me. Correct me if I'm wrong.
----
Stephen D Green

On Sun, 14 Nov 2021 at 15:12, Ihe Onwuka <ihe.onwuka@gmail.com> wrote:
Stephen. JSON is young enough that it could have been defined to be interoperable with XML. Have you never asked why it's inventor and protagonists never did that?

On Sun, Nov 14, 2021 at 9:58 AM Stephen D Green <stephengreenubl@gmail.com> wrote:
Thanks Norman,

I suppose, from experience of twenty years working with .Net, it is, to my mind, an indicator of atrophy of support for a technology such as XML, when libraries in 2021 are still exactly as they were ten to fifteen years ago. JSON support improves with every major new version of .NET, as we see with incorporation of JSON into the System namespace and improvements in JSON support in the HTTP client. The days when XML had such attention are over. Like an older sibling, there is every reason to be jealous when the new baby is getting all the attention, but now JSON itself is almost the same age as XML and still it gets favouritism. We all know the history of this. But if JSON is getting all the attention despite being only a few years younger than XML, is there something to be done or should we be thinking of an exit strategy? For UBL it has taken 10 years to bring JSON support to a similar level to XML, direct generation from CCTS models according to a standardised specification (on the point of being standardised). That is a good example and maybe other XML business semantic standards and libraries should follow this path, fully specifying how to give JSON the same syntactic role as XML has previously enjoyed as a serialisation of the instance documents for those libraries.

Regards
Steve

On Sun, 14 Nov 2021 at 14:33, Norman Gray <norman.gray@glasgow.ac.uk> wrote:
Steve, hello.

On 14 Nov 2021, at 12:43, Stephen D Green wrote:

But if you try creating some XML with .NET
  libraries then simply changing from UTF 8 to UTF 16 you should realise how
  poorly these libraries work and how many ridiculous hoops you have to jump
  through to avoid memory leaks. It is simply a matter of curtailed
  investment, still stuck with original DOM-based processing.
Right, I see what you mean, I think.  I've been in that general situation before, but to me, it just sounds like some rather bad tooling (I'm partly echoing Ihe's response here).  I'd have hoped that the XML-wrangling and the serialisation would be sufficiently orthogonal that the XML-wrangling (which doesn't care about encoding) would simply send string to the serialiser, and it would worry about encoding them into bytes.  Fiddly to set up, but not a hard problem.

You then get to see how immature these
  libraries are and how little investment has been made in getting them to
  work with each other and improving them with time. They are stuck in 2005.
I think it's quite possible that the batteries-included XML support in ecosystems such as .NET hasn't had much TLC in the last decade.  It might be that that support was good enough for the 'XML for everything' attitude that was regrettably common around then, but that anyone doing XML 'seriously' would either use (commercial?) third-party frameworks or just learn to live with it, and that this has meant that that batteries-included support has never really got better.  I make this remark with some diffidence: I'm not sure how true it is.

So I probably agree with you, Steve, to the extent that wrangling XML does still feel rather clumsy in most languages.  But I don't think it follows that XML is past its sell-by date (which I think is what you're basically suggesting?), since the sort of problems where XML is the right answer (which do not obviously include cases where the goal is sending very simple messages about), are ones where a bit of clumsiness in the serialisation is lost in the noise.

Parenthetically, it occurs to me that 'encodings' is becoming less of a headache than it used to be, simply because UTF-8 is becoming more ubiquitous.

Best wishes,

Norman


--
Norman Gray  :  https://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
--
----
Stephen D Green
_______________________________________________________________________

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@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.