Google Groups Home
Help | Sign in
Both XML and JSON possible?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
merd...@homenetnw.net  
View profile
 More options Feb 15, 6:23 pm
From: merd...@homenetnw.net
Date: Fri, 15 Feb 2008 15:23:25 -0800 (PST)
Local: Fri, Feb 15 2008 6:23 pm
Subject: Both XML and JSON possible?

It would be soooooooooooo nice to have both XML and JSON availabe for db
storage.  Is this possible?

Dave


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Wall  
View profile
 More options Feb 15, 6:39 pm
From: "Jeremy Wall" <jer...@marzhillstudios.com>
Date: Fri, 15 Feb 2008 17:39:56 -0600
Local: Fri, Feb 15 2008 6:39 pm
Subject: Re: Both XML and JSON possible?

why? You can do the same thing with both of them. What benefit do you get
from one over the other?

On 2/15/08, merd...@homenetnw.net <merd...@homenetnw.net> wrote:

> It would be soooooooooooo nice to have both XML and JSON availabe for db
> storage.  Is this possible?

> Dave

--
Jeremy Wall
http://jeremy.marzhillstudios.com
Jer...@marzhillstudios.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Aljord  
View profile
 More options Feb 15, 7:24 pm
From: "Patrick Aljord" <patc...@gmail.com>
Date: Sat, 16 Feb 2008 01:24:44 +0100
Local: Fri, Feb 15 2008 7:24 pm
Subject: Re: Both XML and JSON possible?
On Sat, Feb 16, 2008 at 12:39 AM, Jeremy Wall

<jer...@marzhillstudios.com> wrote:
> why? You can do the same thing with both of them. What benefit do you get
> from one over the other?

I suppose it would be easier for people that already works with XML on
their application so they can store it directly in couchdb.
I think the issue was already addressed here and the devs won't commit
their time on 2 different type of storage IIRC, which is fine with me
as I prefer json :)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave37  
View profile
 More options Feb 15, 7:45 pm
From: dave37 <merd...@homenetnw.net>
Date: Fri, 15 Feb 2008 16:45:00 -0800 (PST)
Subject: Re: Both XML and JSON possible?

Hi Jeremy.  Please see http://ajaxian.com/archives/json-vs-xml-the-debate

I've settled on the TIBCO General Interface IDE to develop a concept.
If both XML and JSON were available,
then couchDB would be a very good match to use with GI.

Dave

On Feb 15, 3:39 pm, "Jeremy Wall" <jer...@marzhillstudios.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave37  
View profile
 More options Feb 15, 7:55 pm
From: dave37 <merd...@homenetnw.net>
Date: Fri, 15 Feb 2008 16:55:38 -0800 (PST)
Local: Fri, Feb 15 2008 7:55 pm
Subject: Re: Both XML and JSON possible?
Hi Patrick.

Wasn't XML the data type for the first few versions of couchDB?  So,
most of the coding should already be there.

Maybe any created db would have to be restricted to either JSON or
XML: that might simplify things.

JSON is also my preference but XML sometimes might be better to use
for content.

Dave

On Feb 15, 4:24 pm, "Patrick Aljord" <patc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan L  
View profile
 More options Feb 16, 12:11 pm
From: Jan L <JanLehna...@googlemail.com>
Date: Sat, 16 Feb 2008 09:11:18 -0800 (PST)
Local: Sat, Feb 16 2008 12:11 pm
Subject: Re: Both XML and JSON possible?
Hi,
On Feb 16, 1:55 am, dave37 <merd...@homenetnw.net> wrote:

> Hi Patrick.

> Wasn't XML the data type for the first few versions of couchDB?  So,
> most of the coding should already be there.

yeah, but we threw it all away :) But seriously. CouchDB uses the
Erlang-
representation of JSON internally now, so just 'enabling the XML-code'
won't work.

> > Maybe any created db would have to be restricted to either JSON or
> XML: that might simplify things.

> JSON is also my preference but XML sometimes might be better to use
> for content.

We suggest using a transparent XML-JSON converter in the storage layer
of your application.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave37  
View profile
 More options Feb 16, 3:56 pm
From: dave37 <merd...@homenetnw.net>
Date: Sat, 16 Feb 2008 12:56:48 -0800 (PST)
Local: Sat, Feb 16 2008 3:56 pm
Subject: Re: Both XML and JSON possible?
Hi Jan.

In view of your reply I guess that a "transparent XML-JSON converter"
is the way to go.

Can anyone point me to a good, fast, bi-directional, open-source XML-
JSON converter?
One written in JS or erlang would be best.

By the way, I sent a few hours in the erlang tutorial a few day ago.
Its pattern-matching approach
is really a different way of programming compared to C++ or
javascript!  But it makes sense in today's world of quad-cores ( even
8-cores now).
Maybe in a few weeks I'll be able to make the mind-set change and be
able to think in the erlang lanuage.

Thanks to all,
Dave

On Feb 16, 9:11 am, Jan L <JanLehna...@googlemail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave37  
View profile
 More options Feb 20, 1:09 pm
From: dave37 <merd...@homenetnw.net>
Date: Wed, 20 Feb 2008 10:09:36 -0800 (PST)
Local: Wed, Feb 20 2008 1:09 pm
Subject: Re: Both XML and JSON possible?

One more comment, even if I might appear to be a pain-in-the-****.

In this article  http://reddevnews.com/news/print.aspx?editorialsid=9545
it appears that Microsoft is migrating the storage format of some of
its
major products, like Word and Exel, to XML!

So, it appears there will be even more demand for DBs that can store
XML
as a native format.

I'm starting to work with OWL and GI.  Both use XML.
Those working in the semantic web tend to use XML.
Many on the cutting-edge of AI use XML.

Does it make sense to confine couchDB to just JSON?
Why would you want to put even the minor obstacle of
XML2JSON translation in the way of all these potential
users of couchDB?

By the way I cannot find a truly bi-directional translator;
XML and JSON are not perfectly compatible in what
they can handle.

Now for a little PR.  I really do appreciate all the work ya'll are
doing.  IMHO, couchDB is a great, timely concept.
Please reconsider including XML, even if it is put on a low priority.

Dave


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Lenz  
View profile
(1 user)  More options Feb 20, 2:34 pm
From: Christopher Lenz <cml...@gmx.de>
Date: Wed, 20 Feb 2008 20:34:43 +0100
Local: Wed, Feb 20 2008 2:34 pm
Subject: Re: Both XML and JSON possible?
On 20.02.2008, at 19:09, dave37 wrote:

> Now for a little PR.  I really do appreciate all the work ya'll are
> doing.  IMHO, couchDB is a great, timely concept.
> Please reconsider including XML, even if it is put on a low priority.

We'll probably enable E4X[1] in the Javascript view server to allow  
people to easily access XML content inside JSON documents. And if  
you're not using Javascript views, you can just use the XML libs that  
come with the language in use (such as Pthon or Ruby). No need to bake  
XML support into Couch itself.

   [1] http://en.wikipedia.org/wiki/E4X

Cheers,
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan L  
View profile
 More options Feb 20, 2:35 pm
From: Jan L <JanLehna...@googlemail.com>
Date: Wed, 20 Feb 2008 11:35:36 -0800 (PST)
Local: Wed, Feb 20 2008 2:35 pm
Subject: Re: Both XML and JSON possible?
Hi,

On Feb 20, 7:09 pm, dave37 <merd...@homenetnw.net> wrote:

The CouchDB distribution might include a transparent converter
at some point. Perhaps. And probably. But it is not likely to be
supported by the core.

But this is Open Source after all and we are open for patches :-)

Cheers,
Jan
--


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google