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

Re: M as the next XML?

  • From: nico <ndebeiss@g...>
  • To: xml-dev@l...
  • Date: Fri, 27 Mar 2009 10:28:06 +0100

Re:  M as the next XML?
I think there is still a lot more to do in order to break the wall between documents and objects !

I dream of a language where we could do :

data.txt :
person { name = "john", surname = "dow" }

data = "load("data.txt");
That load creating both the squeleton of classes, and its instances.

And then access/modify data as if it was a document :

add(data, "//person[name = 'john'][surname = 'dow']", account = "54335");

All that expression "//person[name = 'john'][surname = 'dow']" as a string, that way that could be generically generated from a database, or a configuration file.

You could say that is already what is possible in XML, but still lots of developpers will ask you to have a real object tree, like :

var persons = data.person;
foreach person in persons {
    if (http://person.name == "john" and person.surname == "dow") {
         person.account = "54335";
    }
}

See all the marshaller/unmarshaller APIs you find on the web in order to do that ! I do not think I will ever understand why people are so fan of those generated POJO objects.

I only saw a bit about JSON, but it seems they made some steps in that direction.

Regards
Nico
http://debeissat.nicolas.free.fr/programming.php


2009/3/27 Simon St.Laurent <simonstl@s...>
Len Bullard wrote:
Revenge of the curly.  { and ; kick < and "'s butt.

More basic data types coupled a little more strongly to the syntax to
achieve a smarter pipeline.

Rick Jeliffe is right.  

I hope M eats the parts of XML's lunch that weren't very digestible (for XML) anyway.

Should be a good thing.

--
Simon St.Laurent
http://simonstl.com/


_______________________________________________________________________

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]


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.