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: 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; '>>': 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>': 0.22; 'cc:addr:python.org': 0.22; 'closely': 0.24; 'parse': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; '>': 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: References: <55e354fd-a5bc-4f1f-a59a-55951fe81ca3@googlegroups.com> <792cb61b-d351-4b4b-aa7b-35e959111c0a@googlegroups.com> From: George Silva 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" 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --001a11343cf0320e6b050bf28408 Content-Type: text/plain; charset=UTF-8 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 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 > > "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/ --001a11343cf0320e6b050bf28408 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
As people already said, don't use XML for persist= ence.

Read it, parse it, and persist it in another format. dat= abases are quite good for that. even sqlite3 will outperfom any few MB xml = files.

O= n 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?
>>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0NO!
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0JSON and XML, in my mind, are equival= ents -- (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 Consulto= ria
----------------------------
--001a11343cf0320e6b050bf28408--