Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CFD069302 for ; Mon, 19 Mar 2012 11:05:29 +0000 (UTC) Received: (qmail 18750 invoked by uid 500); 19 Mar 2012 11:05:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18699 invoked by uid 500); 19 Mar 2012 11:05:27 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 18690 invoked by uid 99); 19 Mar 2012 11:05:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 11:05:27 +0000 X-ASF-Spam-Status: No, hits=3.6 required=5.0 tests=FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cgsmcmlxxv@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 11:05:21 +0000 Received: by yhpp61 with SMTP id p61so6465125yhp.11 for ; Mon, 19 Mar 2012 04:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=K6eb4ANeIVlI+hvxWF0CdfVxtUAh/gTDMjX3rc681/U=; b=0KJdAFOOvcf3lR0dBTUBctvorl9pmn+JjQ10qqUsOtGFP3FwcbdvpGVTHEEoWTeldS VZbuEGcd2vrK47DBGSGqiC6e7+lknLbaaowTE2luaSXzqo8GjioG93w9bycwCoU4A588 aLS08LRJJxezhjc4aBlZw847xy5oBAt8sXayQ4ayqbzgiK5hKxytFwdqwnbudp4BFzXE oN6s8kWXHkXv2QcQsL4Ysw34wWYnI/3eaR0Q0jGUWhO9NIVtPDMUecle5Sil0lOlj9Ni jvvNwP4w0J1Gpn4WuwIib5v29LC7yOAWpmd82TQO2nxVZ+lhdfTcUMPQ21tOBlAvvzM2 AUyw== MIME-Version: 1.0 Received: by 10.224.181.12 with SMTP id bw12mr480015qab.32.1332155100130; Mon, 19 Mar 2012 04:05:00 -0700 (PDT) Received: by 10.229.28.138 with HTTP; Mon, 19 Mar 2012 04:05:00 -0700 (PDT) In-Reply-To: <874ntlcuge.fsf@gmail.com> References: <874ntlcuge.fsf@gmail.com> Date: Mon, 19 Mar 2012 12:05:00 +0100 Message-ID: Subject: Re: Is it possible to perform a transform on a bulk insert From: CGS To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf303b41e9876cbd04bb968739 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b41e9876cbd04bb968739 Content-Type: text/plain; charset=ISO-8859-1 Hi, Considering you don't want to write your own application to do that, I suppose you can use a XML to JSON conversion. Just take a look at these two examples I found Google-ing: http://www.thomasfrank.se/xml_to_json.html http://www.fyneworks.com/jquery/xml-to-json/ Once you have the JSON from your Google bookmarks, it's simple to insert them in CouchDB. CGS On Mon, Mar 19, 2012 at 1:20 AM, bsquared wrote: > Hello all, > > I would like to make a basic couchapp that can take the xml returned > from a web app and transform it using a supplied xslt file. The result > of this would be cleaned a bit and posted to the database. > > Specifically, I want to move my Google bookmarks to a couchdb > instance. > > http://www.google.com/bookmarks/?output=xml > or > http://www.google.com/bookmarks/?output=rss > > Unfortunately, Google no longer offers json as an output option. It > must have gone away with the notebook api. > > Any suggestions? > > Thank you. > > Regards, Brian > > --20cf303b41e9876cbd04bb968739--