Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] M as the next XML?

From: =?ISO-8859-1?Q?Eric_Br=E9chemier?= <eric.brechemier@-----.--->
To: nico <ndebeiss@-----.--->, xml-dev@-----.---.---
Date: 3/27/2009 12:24:00 PM
  Hi Nicolas,

I think you're on to something: I tend to see a lot of Java code with
nested tree structures for Data Objects, all defined in distinct
Classes with fields, and constructors, and getters and setters, which
make me miss the generic syntax of XML or JSON.

Now might be the time to take both XML and Java to the next level, or
maybe I am just suffering from frequent switching between Javascript
and Java.

Cheers,

Eric


On Fri, Mar 27, 2009 at 10:28 AM, nico <ndebeiss@g...> wrote:
> 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 (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
>>(...)

_______________________________________________________________________

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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent