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


Groups > comp.lang.python > #28169

XML parser: Element ordering?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mailinglists@xgm.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.092
X-Spam-Evidence '*H*': 0.82; '*S*': 0.00; 'parser': 0.07; 'subject:XML': 0.16; 'subject:parser': 0.16; 'config': 0.17; 'thanks,': 0.18; 'python?': 0.20; 'parse': 0.22; 'elements': 0.23; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; '(and': 0.32; 'file': 0.32; 'to:addr:python-list': 0.33; 'equal': 0.33; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:74.125': 0.36; 'xml': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'hello,': 0.39; 'header:Received:5': 0.40; 'matter': 0.61; 'here:': 0.62; 'different': 0.63; 'more': 0.63; 'florian': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=mime-version:sender:x-google-sender-delegation:x-originating-ip :date:x-google-sender-auth:message-id:subject:from:to:content-type; bh=YR5Ef5eSmOAQPac6UP7/JDEwlKHPJS3erQTh4XBq2Fs=; b=HrkwbL48XKEiFyrBcxOH4NgndrzXBX6dLQ0X4xCkiEFOE+QuARhVT/97txyDqI1WcL /vY97+qtJPURViCPbN4drhLurIogrxDixq5zMldnMksUFc7iTWcM8RM3DQbtf/Cr7csc WX/jZWN4yuvebIJAo+suxJIgWRB08w264wKiw=
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-google-sender-delegation:x-originating-ip :date:x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=YR5Ef5eSmOAQPac6UP7/JDEwlKHPJS3erQTh4XBq2Fs=; b=O85xENauhhN3wcMc7K4c2CmPm0hKITIf/xY1Bp805g0GEWLt5CdwuWIEr5drlZilOb O7nzpG262BNE+UMnOvXSVLyjYTw3A++kpjm2bZCcN3Er61VJtm8nUZIYdF5O1xfOzcMa K4gLob7DrZX/yJGeIs0NSpWqDAazR66dzZTwP5EtDMJ4x4RddvkmHZsyLn55Z8Vz/nc2 V4AAw1QK87QPt7FUXmhPUvAz0Nwste5FdSrY6QxS4EGxBec89CsIHbVqUgqHBX+ftKEV mFolXgGemasoosq6bhEWj8VJRBpeFglpIUSRZr1qIpYKb9ubse0OKhxrCYaoHayheAf9 mhHQ==
MIME-Version 1.0
Sender florian.lindner@xgm.de
X-Google-Sender-Delegation florian.lindner@xgm.de
X-Originating-IP [129.187.68.60]
Date Fri, 31 Aug 2012 14:03:16 +0200
X-Google-Sender-Auth VAUM97dhxtzgcgHNCAJL8_G22vI
Subject XML parser: Element ordering?
From Florian Lindner <mailinglists@xgm.de>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-Gm-Message-State ALoCoQm1QS1T0TPvPQglVZ94cKKwggt7WIbTcpY5glksUJ1PGUqtc9ues7olO4DjS6nhjSO0kjfl
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4007.1346414604.4697.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346414604 news.xs4all.nl 6917 [2001:888:2000:d::a6]:47678
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28169

Show key headers only | View raw


Hello,

I plan to use the etree.ElementTree XML parser to parse a config file
in which the order of the elements matter, e.g.:

<A>
<C /><D />
</A>

is not equal to:

<A>
<D /><C />
</A>

I have found different answers to the question if order matters in XML
documents. So my question here: Does it matters (and is more or less
guarenteed to matter in the future) for the ElementTree parser of
python?

Thanks,

Florian

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


Thread

XML parser: Element ordering? Florian Lindner <mailinglists@xgm.de> - 2012-08-31 14:03 +0200

csiph-web