You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Sayth Renshaw <fl...@gmail.com> on 2015/01/05 11:57:57 UTC

What replaces e4x for importing XML into couchdb?

Hi I am Sayth from Newcastle Australia. Starting to use couchdb looking
around at articles for importing xml data into couchdb I noticed E4X
mentioned. Following up this it seems now that e4x is deprecated

There is an article which starts to showw JSX replacing e4x
http://blog.vjeux.com/2013/javascript/jsx-e4x-the-good-parts.html but it
appears to me this may be more speculation than anything?

Would I assume correctly that I should use xquery to filter the xml(large
and somewhat complex) with the data I want and then convert it into json
and import from there into couchdb?

Or is there a more standard way to work with XML in couchdb?

thanks


Sayth

Re: What replaces e4x for importing XML into couchdb?

Posted by Jan Lehnardt <ma...@jan.io>.
> On 05 Jan 2015, at 11:57 , Sayth Renshaw <fl...@gmail.com> wrote:
> 
> Hi I am Sayth from Newcastle Australia.

Heya Sayth! :)

> Starting to use couchdb looking


Welcome!

> around at articles for importing xml data into couchdb I noticed E4X
> mentioned. Following up this it seems now that e4x is deprecated
> 
> There is an article which starts to showw JSX replacing e4x
> http://blog.vjeux.com/2013/javascript/jsx-e4x-the-good-parts.html but it
> appears to me this may be more speculation than anything?
> 
> Would I assume correctly that I should use xquery to filter the xml(large
> and somewhat complex) with the data I want and then convert it into json
> and import from there into couchdb?
> 
> Or is there a more standard way to work with XML in couchdb?

The most forward looking suggestion would be to do all XML parsing in pure JavaScript. I’m sure there are various projects available to do what you need.

Best
Jan
--