Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88780
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <larry.martell@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'deployed': 0.07; 'attributes': 0.09; "client's": 0.09; 'imported': 0.09; 'works.': 0.09; 'subject:Help': 0.11; '2.7': 0.14; ':-(': 0.16; 'machine?': 0.16; 'skip:r 90': 0.16; 'wrote:': 0.18; 'stefan': 0.19; 'machine': 0.22; '>>>': 0.22; 'to:name:python-list@python.org': 0.22; 'copied': 0.24; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'feature': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'that.': 0.31; 'larry': 0.31; 'running': 0.33; 'fri,': 0.33; 'could': 0.34; 'subject:with': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; '2.6': 0.36; 'set.': 0.36; 'doing': 0.36; 'searching': 0.37; 'so,': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; '2015': 0.84; 'much)': 0.84; 'upgrade,': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fXMihirtV9lEyC+14/0/JFmvGmZ9pAFm8cMDmb+bCC8=; b=ZPivnTI0JVl1EDCkYujcaH9dJh9X7ebpaL69H5Z1HEBNpqh6MKUEOAIRTJEKi6a7R6 FVVGUIFPUTFbYyktVpL+wIhxn7ofKps+atqyDdBnL+tNnBwiIENVx5TpiQSDFjTXkKfx 9bjQUI6EPuy9gu1ZsevHrQnVgndZUZhwujD/Wy1QAUiisHF8/Vz58FtIHL62Yl8HZHDJ mG4kav6+KNYi/2OvW2LsuzI6FvWnYJXua6Hh+MdOjXL1dNGe+cvog3iHTcZlFL0VyMP4 QcnlcBzmXjGk7tireeGjVEu6FCvPUCoZR4Ov94mVeyzd9zjnjcYZe4kQoun4Pg9U1wV2 8T9A== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.218.195 with SMTP id pi3mr4357562wic.71.1428667615805; Fri, 10 Apr 2015 05:06:55 -0700 (PDT) |
| In-Reply-To | <mg8cc7$uj9$1@ger.gmane.org> |
| References | <CACwCsY4-3_7RBtx2LTLZ6pEAk-qW31XxeZz4aFVCmyK6f4Tong@mail.gmail.com> <mg6h07$uh$1@ger.gmane.org> <CACwCsY63BwubfhmNydzsu8Pg5qSKt6MJ_-N44hh0+yBSmZM7Sg@mail.gmail.com> <CACwCsY5vfpqGnYyCLi-7UVGNTm5VZbGddDPpW6UX+=cygUfUng@mail.gmail.com> <mg8cc7$uj9$1@ger.gmane.org> |
| Date | Fri, 10 Apr 2015 08:06:55 -0400 |
| Subject | Re: Help with ElementTree |
| From | Larry Martell <larry.martell@gmail.com> |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20 |
| 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.205.1428667778.12925.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1428667778 news.xs4all.nl 2882 [2001:888:2000:d::a6]:51978 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:88780 |
Show key headers only | View raw
On Fri, Apr 10, 2015 at 7:32 AM, Stefan Behnel <stefan_ml@behnel.de> wrote:
> Larry Martell schrieb am 10.04.2015 um 12:49:
>>> root.find("Doc/Node[@Name='Events']/Parameter[@Name='LastEventExportTime']/Value/Current").text
>>> root.find("Doc/Node[@Name='SystemConfig']/Node[@Name='Environment']/Parameter[@Name='ToolName']/Value/Current").text
>>
>> So I tested this on a machine running 2.7, but then when I deployed it
>> to my client's machine it did not work. Turns out they're running 2.6
>> which I find does not support searching for attributes using the
>> [@attribute] syntax. They do not want to upgrade, so I have to find a
>> way to do this without using that. :-(
>
> Do they, by any chance, have lxml installed on their machine? If so, you
> could use that as a (pretty much) drop-in replacement for ElementTree, with
> a substantially larger feature set.
No, they don't. What I ended up doing is, I got the 2.7 xml/etree and
I copied that to the 2.6 dir as xml/etree27 and imported that and it
works.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Help with ElementTree Larry Martell <larry.martell@gmail.com> - 2015-04-10 08:06 -0400
csiph-web