> > Ah, yes.... there isn't a decent XQuery engine for Python. Generally if > you're using a XML database, the XML database supports XQuery. So you > put together your XQuery, send it to the XML database, get back XML > (maybe read it to XML nodes with ElementTree or lxml), then do what you > will with it.
A long recurring dream for me as well. The XLinq idea from Microsoft is pretty nice as well. > > This is my desire at least. I plan on going with the community version > of the Mark Logic XML db (http://marklogic.com/) but there's a Berkeley > DB XML engine that I've heard is decent as well > (http://sleepycat.com/products/bdbxml.html). Both of these use XQuery > for their searching, and thus you can get your resulting XML back in a > way that requires very little if any changes before you're ready to use > it in your webapp. The Mark Logic one has super-powerful search and > indexing capabilities though which makes it more of a fit for my > projects. eXist is another a great native XML database. SQL Server 2005 has also a nice XML support but well it's not cheap :) > > If the purpose's main intent was to have a better way to deal with XML > rather than ElementTree or DOM stuff, perhaps we should be inspired by > the Ruby answer to XML? Rather than using clunky DOM access, they made > it more 'Ruby-like' (http://www.germane-software.com/software/rexml/). > Perhaps something like that so making a Python class on top of various > XML structures isn't needed, and instead we can just use the existing > XML structures in a better way? > Well I'm entirely sold on Amara which is a nice library atop 4suite. It offers a superbe pythonic API for handling XML through Python. http://uche.ogbuji.net/tech/4suite/amara/manual-dev And of course it provides you what 4suite offers. - Sylvain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

