Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33019
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <artie.ziff@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'failing': 0.05; 'python': 0.09; 'subject:xml': 0.09; 'xml.': 0.09; "'/'": 0.16; 'integration)': 0.16; 'structure.': 0.16; 'substituting': 0.16; 'module': 0.19; 'translate': 0.20; "i'd": 0.22; 'this:': 0.23; 'header:User-Agent:1': 0.26; 'thanks!': 0.26; 'received:209.85.210.46': 0.27; 'received:24': 0.27; '(perhaps': 0.29; 'subject:other': 0.29; 'error': 0.30; 'subject:data': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'message-id:@gmail.com': 0.36; 'does': 0.37; 'received:209': 0.37; 'data': 0.37; 'to:addr:python.org': 0.39; 'hello,': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'due': 0.66; 'power': 0.74; 'tags,': 0.81 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Buz/N2eUQbAZ2vwvHu50JxCnnSK22rKbkA9AnefGzfk=; b=A6QXvq82xTzLkOB0BtfypH0rTD95Z2aqb5ihAYkAONVMyUGJhbtOvfeRw3va0O8c1x GKxlDBpSaCDt0DhWCReZP+Wj6EE744vec+H2BfwLeWIwY69d9aKSD0d+vLb/8P9DBXRb GI4HDAeyvPe70ltwaeaO+aLEHOujahxbd1C02I0GvtGtFAADQzQOe7AWdM8IUKJ/TXkv aWRPgcguxaUu+m1dsGkSSEOaJgnrg9UTSvb6u8CFbzQdsbVoXDWSLhrStWaKLPhzQrKj 1hQ0NCsZcLO4mogbndh8/QrWdfrit+YLOdHQz2lMtJikmzD8zOdeY2ugT46PHzAy/z/u j50w== |
| Date | Fri, 09 Nov 2012 04:54:43 -0800 |
| From | Artie Ziff <artie.ziff@gmail.com> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | xml data or other? |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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 | <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.3490.1352465695.27098.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1352465695 news.xs4all.nl 6988 [2001:888:2000:d::a6]:56285 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33019 |
Show key headers only | View raw
Hello,
I want to process XML-like data like this:
<testname=ltpacpi.sh>
<description>
ACPI (Advanced Control Power & Integration) testscript for 2.5 kernels.
<\description>
<test_location>
ltp/testcases/kernel/device-drivers/acpi/ltpacpi.sh
<\test_location>
<\testname>
After manually editing the data above, the python module
xml.etree.ElementTree parses it without failing due to error in the data
structure.
Edits were substituting '/' for '\' on the end tags, and adding the
following structure:
<?xml version="1.0"?>
<data>
<testname name=ltpacpi.sh>
...
<\testname>
</data>
Is there a name for the format above (perhaps xhtml)?
I'd like to find a python module that can translate it to proper xml.
Does one exist? etree?
Many thanks!
az
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
xml data or other? Artie Ziff <artie.ziff@gmail.com> - 2012-11-09 04:54 -0800
Re: xml data or other? rusi <rustompmody@gmail.com> - 2012-11-09 05:50 -0800
Re: xml data or other? Artie Ziff <artie.ziff@gmail.com> - 2012-11-18 05:32 -0800
Re: xml data or other? rusi <rustompmody@gmail.com> - 2012-11-18 07:54 -0800
Re: xml data or other? rusi <rustompmody@gmail.com> - 2012-11-18 07:58 -0800
RE: xml data or other? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-19 21:42 +0000
Re: xml data or other? Stefan Behnel <stefan_ml@behnel.de> - 2012-11-20 06:48 +0100
Re: xml data or other? shivers.paul@yahoo.co.uk - 2012-11-13 06:05 -0800
Re: xml data or other? shivers.paul@yahoo.co.uk - 2012-11-13 06:05 -0800
csiph-web