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

Re: How to represent mixed content in JSON and JSON Schema?

  • From: "Norman Gray" <norman@astro.gla.ac.uk>
  • To: "Liam R. E. Quin" <liam@fromoldbooks.org>
  • Date: Fri, 13 Jul 2018 01:01:17 +0100

Re:  How to represent mixed content in JSON and JSON Schema?
Greetings.

On 12 Jul 2018, at 15:58, Liam R. E. Quin wrote:

Yes. We saw this also back in Perl days, with some XML libraries using
a mix of an array for contents and a hash for attributes,
A tangent:

I remember having a fairly noisy row with a colleague a few years ago, who asserted that the XML spec didn't require that XML processors preserve the ordering of element children. The grounds for this appeared to be that the best-known Perl XML library didn't do this (because it used a hash for element children as well as for attributes), and surely Perl could do no wrong.

Entertainingly, the XML spec does not in fact explicitly require that elements be presented to the application in document order. But it omits that requirement on the grounds (and I think I can cite chapter and verse on this) that such a requirement is so screamingly obvious that it would be bloody silly to spell it out.

Best wishes,

Norman


--
Norman Gray : https://nxg.me.uk


[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.