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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 Hello, I want to process XML-like data like this: ACPI (Advanced Control Power & Integration) testscript for 2.5 kernels. <\description> 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: ... <\testname> 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