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


Groups > comp.lang.python > #83263

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <georger.silva@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'xml,': 0.05; 'json': 0.07; 'mind,': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '&gt;&gt;': 0.16; 'any.': 0.16; 'corresponds': 0.16; 'equivalents': 0.16; 'notations': 0.16; 'subject:XML': 0.16; 'types,': 0.16; 'subject:python': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'subject:project': 0.19; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'closely': 0.24; 'parse': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'xml': 0.29; 'converting': 0.30; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'that.': 0.31; 'george': 0.31; 'skip:c 30': 0.32; 'another': 0.32; 'quite': 0.32; 'url:python': 0.33; 'subject:with': 0.35; 'basic': 0.35; "can't": 0.35; 'convert': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'format.': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'skip:- 20': 0.37; 'skip:& 10': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'more': 0.64; 'between': 0.67; 'url:br': 0.69; '2015': 0.84; 'consultoria': 0.84; 'subject:you': 0.87; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=1kS+bgLSzDzkRbbUiHRpYcxqpQX5WX9A1qQt8Mrd5a8=; b=wDuC2cLd0b+KEwf8MTEKnK+RTfPJxwltTZLmxTvXKiG+85FNt4rYCzfKQyMupVY5JF rzH/4KLFaUiJ6j4NnKQ1KM+D5QPq44MSFmzO16oYux6zVK+4Qh584usrIiglVk2JmZGw WC+ryjvfdyPO/reMzE0QgyT9IMjziw3HBCpNE39V+jkF7OyXY3HC5j0Jsz8EjbtR0P4h nJUC7Wcu1qc+2kT8y7B/++Mwk18P84BWG62n6x+H297L1KktE3kTiqpHr08wSfhQnic5 7nx/JIy4QdV7uU0kjIY6K7nCsl7SwbQB2yB3TmWmuWWVYP2mubmhqhEpgxVkvxOyuurY RPDw==
X-Received by 10.229.240.130 with SMTP id la2mr2616217qcb.9.1420511111415; Mon, 05 Jan 2015 18:25:11 -0800 (PST)
MIME-Version 1.0
In-Reply-To <CAPTjJmoGTAaj7p7GGqjmeG-JzvwgJ=Pv0JfSYB9vqG0mX7qk3A@mail.gmail.com>
References <55e354fd-a5bc-4f1f-a59a-55951fe81ca3@googlegroups.com> <mailman.17395.1420466196.18130.python-list@python.org> <792cb61b-d351-4b4b-aa7b-35e959111c0a@googlegroups.com> <r3cmaap018mue2ujmdvfqi9ledj7jai2jo@4ax.com> <CAPTjJmoGTAaj7p7GGqjmeG-JzvwgJ=Pv0JfSYB9vqG0mX7qk3A@mail.gmail.com>
From George Silva <georger.silva@gmail.com>
Date Tue, 6 Jan 2015 00:24:31 -0200
Subject Re: If you were starting a project with XML datasource using python
Cc "python-list@python.org" <python-list@python.org>
Content-Type multipart/alternative; boundary=001a11343cf0320e6b050bf28408
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17409.1420511119.18130.python-list@python.org> (permalink)
Lines 83
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1420511119 news.xs4all.nl 2939 [2001:888:2000:d::a6]:33266
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:83263

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <rosuav@gmail.com> wrote:

> On Tue, Jan 6, 2015 at 11:49 AM, Dennis Lee Bieber
> <wlfraed@ix.netcom.com> 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
> > "options" for how to notate basic data.
>
> JSON corresponds much more closely to Python data types, but
> converting from one to the other can't improve matters any.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
George R. C. Silva
SIGMA Consultoria
----------------------------
http://www.consultoriasigma.com.br/

Back to comp.lang.python | Previous | Next — Previous in thread | Next 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