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


Groups > comp.lang.python > #78994

Re: Parse bad xml file

X-Received by 10.224.28.68 with SMTP id l4mr6145954qac.2.1413103030324; Sun, 12 Oct 2014 01:37:10 -0700 (PDT)
X-Received by 10.50.43.167 with SMTP id x7mr191279igl.3.1413103030223; Sun, 12 Oct 2014 01:37:10 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!dc16no2252137qab.1!news-out.google.com!rp1ni26922igb.0!nntp.google.com!h18no4893615igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Sun, 12 Oct 2014 01:37:09 -0700 (PDT)
In-Reply-To <e360dd2a-8cfe-4b49-ada2-55806acf68ae@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=59.95.13.42; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui
NNTP-Posting-Host 59.95.13.42
References <9bb1f027-dc72-43c1-9301-e2105225f75a@googlegroups.com> <mailman.14752.1412943619.18130.python-list@python.org> <e360dd2a-8cfe-4b49-ada2-55806acf68ae@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <5ec9e1d2-2951-43cd-9ec2-b8a0777be51c@googlegroups.com> (permalink)
Subject Re: Parse bad xml file
From Rustom Mody <rustompmody@gmail.com>
Injection-Date Sun, 12 Oct 2014 08:37:10 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1710
X-Received-Body-CRC 470164633
Xref csiph.com comp.lang.python:78994

Show key headers only | View raw


On Friday, October 10, 2014 6:03:58 PM UTC+5:30, David Jobes wrote:
> On Friday, October 10, 2014 8:21:17 AM UTC-4, Peter Otten wrote:

<Elementtree XMl snipped>

> That did it, thank you, and in a lot fewer lines of code than i had, i was trying to use strings and regex. i will read up more on the xml.etree stuff.

Those who parse xml/html with re's should read this --

http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

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


Thread

Parse bad xml file David Jobes <david.jobes.sony@gmail.com> - 2014-10-10 04:46 -0700
  Re: Parse bad xml file Peter Otten <__peter__@web.de> - 2014-10-10 14:20 +0200
    Re: Parse bad xml file David Jobes <david.jobes.sony@gmail.com> - 2014-10-10 05:33 -0700
      Re: Parse bad xml file Rustom Mody <rustompmody@gmail.com> - 2014-10-12 01:37 -0700

csiph-web