Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60461
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.067 |
| X-Spam-Evidence | '*H*': 0.87; '*S*': 0.00; 'xml,': 0.05; 'element': 0.07; 'nested': 0.07; 'subject:fields': 0.09; 'subject:parsing': 0.09; 'nesting': 0.16; 'preserve': 0.16; 'subject:XML': 0.16; 'tags.': 0.16; 'email addr:python.org,': 0.16; 'wrote:': 0.18; 'later': 0.20; 'not,': 0.20; 'email addr:gmail.com>': 0.22; 'parse': 0.24; 'initial': 0.24; "i've": 0.25; '>': 0.26; 'posts': 0.26; 'post': 0.26; 'defined': 0.27; 'point': 0.28; 'specifically': 0.29; 'chris': 0.29; 'am,': 0.29; 'xml': 0.29; 'message-id:@mail.gmail.com': 0.30; 'went': 0.31; 'software,': 0.31; '(since': 0.31; '25,': 0.31; 'depth': 0.31; 'file': 0.32; 'quite': 0.32; 'monday,': 0.33; 'subject:with': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'really': 0.36; 'replies': 0.36; "didn't": 0.36; 'list': 0.37; 'being': 0.38; 'skip:& 10': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'called': 0.40; 'even': 0.60; 'read': 0.60; 'first': 0.61; 'email addr:gmail.com': 0.63; 'show': 0.63; 'more': 0.64; 'email name:python-list': 0.65; 'news': 0.67; '26,': 0.68; 'groups.': 0.74; 'deja': 0.84; 'off,': 0.84; 'carries': 0.91; 'on?': 0.91; 'fight': 0.97; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SVPjLd70ru/sRc/TchoIw8UDzgsHDxuoahIZVTlg31g=; b=U4LybH7WILJuww/4fzrGvJxXhycszjD+3UN+gTElUbrLH9SR1+KJf9J9rmE/RD1ye5 PvXMm8dNv1AGKSCTuljp5IQK/HtPVYfn+/dCeFmeEE8MZ5/l+ohUxVbRuhyKxd2QXWaH NGIXq8nF1aZkEc+9H1KVcjcUJFm3YDFtfplj7agXlaKw4/FC+xQ3FJDlGNcX0Pi8LxLN ghRf51avJ5dqwizZtMF8RI+wscjnP4kanBhW1Zn5nfECL2TKVxRPHZ5DltPsq52JABFJ 5SDOG/1+Q2pUWigibFJgZFMCfeuCUgu1RxhnYhJ5XmeyU0viCGvhS0e8P1aeNtDyG74f TbqQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.76.171 with SMTP id l11mr15600744wiw.13.1385419509309; Mon, 25 Nov 2013 14:45:09 -0800 (PST) |
| Date | Mon, 25 Nov 2013 17:45:09 -0500 |
| Subject | Re: parsing nested unbounded XML fields with ElementTree |
| From | Larry Martell <larry.martell@gmail.com> |
| To | python-list@python.org |
| Content-Type | multipart/alternative; boundary=f46d043749bdb7ab4a04ec081de3 |
| X-Mailman-Approved-At | Tue, 26 Nov 2013 00:10:52 +0100 |
| 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.3200.1385421053.18130.python-list@python.org> (permalink) |
| Lines | 94 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1385421053 news.xs4all.nl 15867 [2001:888:2000:d::a6]:57254 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60461 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 9:22 AM, Larry.Martell@gmail.com > > <Larry.Martell@gmail.com> wrote: > > > I have an XML file that has an element called "Node". These can be nested to any depth and the depth of the nesting is not known to me. I need to parse the file and preserve the nesting. For exmaple, if the XML file had: > > > > > > <Node Name="A"> > > <Node Name="B"> > > <Node Name="C"> > > <Node Name="D"> > > <Node Name="E"> > > > > First off, please clarify: Are there five corresponding </Node> tags > later on? If not, it's not XML, and nesting will have to be defined > some other way. Yes, there are corresponding </Node> tags. I just didn't show them. > Secondly, please get off Google Groups. Your initial post is > malformed, and unless you specifically fight the software, your > replies will be even more malformed, to the point of being quite > annoying. There are many other ways to read a newsgroup, or you can > subscribe to the mailing list python-list@python.org, which carries > the same content. Not sure what you mean by malformed. I don't really care for Google Groups, but I've been using it to post to this any other groups for years (since rn and deja news went away) and no one ever said my posts were malformed. In any case, I did not know the group was available as a ML. I've subbed to that and will post that way.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: parsing nested unbounded XML fields with ElementTree Larry Martell <larry.martell@gmail.com> - 2013-11-25 17:45 -0500
csiph-web