Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83264

Re: If you were starting a project with XML datasource using python

From Steve Hayes <hayesstw@telkomsa.net>
Newsgroups comp.lang.python
Subject Re: If you were starting a project with XML datasource using python
Date 2015-01-06 05:59 +0200
Organization Khanya Publications
Message-ID <2bnmaa5nu4dhv1qvhk40r7jdfghrua20oj@4ax.com> (permalink)
References <55e354fd-a5bc-4f1f-a59a-55951fe81ca3@googlegroups.com>

Show all headers | View raw


On Mon, 5 Jan 2015 03:54:06 -0800 (PST), flebber <flebber.crue@gmail.com>
wrote:

Hi

I need some advice on managing data in the form of xml. I will have to
repeatedly import a small xml file but with many complex attributes.

If I want to retain data integrity and keep the import process simple and
querying from the stored source simple what are my best options?

There are several options for converting XML into objects such as:
http://lxml.de/objectify.html
https://pypi.python.org/pypi/pyxml2obj/
http://eulxml.readthedocs.org/en/latest/xmlmap.html

I could push this as an embedded object into mongo and search from there.

Could ignore XML by just converting to json with something like xml2json and
pushing to many databases from there.

(reposted to fix the long lines produced by the lame GoogleGroups editor)

-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

If you were starting a project with  XML datasource using python flebber <flebber.crue@gmail.com> - 2015-01-05 03:54 -0800
  Re: If you were starting a project with  XML datasource using python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-01-05 08:56 -0500
    Re: If you were starting a project with  XML datasource using python flebber <flebber.crue@gmail.com> - 2015-01-05 10:24 -0800
      Re: If you were starting a project with  XML datasource using python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-01-05 19:49 -0500
      Re: If you were starting a project with XML datasource using python Chris Angelico <rosuav@gmail.com> - 2015-01-06 12:55 +1100
      Re: If you were starting a project with XML datasource using python George Silva <georger.silva@gmail.com> - 2015-01-06 00:24 -0200
  Re: If you were starting a project with XML datasource using python Dan Stromberg <drsalists@gmail.com> - 2015-01-05 14:45 -0800
  Re: If you were starting a project with  XML datasource using python Steve Hayes <hayesstw@telkomsa.net> - 2015-01-06 05:59 +0200

csiph-web