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

2015-01-05 Thread Steve Hayes
On Mon, 5 Jan 2015 03:54:06 -0800 (PST), flebber 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 stor

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

2015-01-05 Thread George Silva
As people already said, don't use XML for persistence. Read it, parse it, and persist it in another format. databases are quite good for that. even sqlite3 will outperfom any few MB xml files. On Mon, Jan 5, 2015 at 11:55 PM, Chris Angelico wrote: > On Tue, Jan 6, 2015 at 11:49 AM, Dennis Lee B

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

2015-01-05 Thread Chris Angelico
On Tue, Jan 6, 2015 at 11:49 AM, Dennis Lee Bieber wrote: >>So you would convert it to json so it can then be stored? >> > NO! > > JSON and XML, in my mind, are equivalents -- (human-readable) > notations > for transferring data between applications. JSON may just have fewer > "op

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

2015-01-05 Thread Dan Stromberg
On Mon, Jan 5, 2015 at 3:54 AM, flebber 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 have a choice, I choose JSON over XML. If stuck with XML, I like xmltodict: https://pypi.pyt

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

2015-01-05 Thread flebber
> > >If you were starting a project, it relied on XML as its datasource what > >would you use and why? And have you used it or just speculating? > > > If I were starting a project, I'd argue furiously that XML is NOT > something that should be used for dynamic data storage (the original GRA

If you were starting a project with XML datasource using python

2015-01-05 Thread flebber
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 se