Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'failing': 0.05; 'python': 0.09; 'friday,': 0.09; 'subject:xml': 0.09; 'to:addr:comp.lang.python': 0.09; 'xml.': 0.09; 'cc:addr:python- list': 0.10; "'/'": 0.16; 'integration)': 0.16; 'structure.': 0.16; 'substituting': 0.16; 'utc,': 0.16; 'wrote:': 0.17; 'module': 0.19; 'translate': 0.20; "i'd": 0.22; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'thanks!': 0.26; '(perhaps': 0.29; 'subject:other': 0.29; 'maybe': 0.29; 'error': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'subject:data': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'tool': 0.36; 'xml': 0.37; 'does': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'hello,': 0.39; 'end': 0.40; 'from:no real name:2**0': 0.60; 'due': 0.66; 'power': 0.74; 'url:info': 0.75; 'tags,': 0.81 Newsgroups: comp.lang.python Date: Tue, 13 Nov 2012 06:05:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.140.196.73; posting-account=nSw5nwoAAAADJU-tMQhuoJM39o7Cbt4k References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 86.140.196.73 MIME-Version: 1.0 Subject: Re: xml data or other? From: shivers.paul@yahoo.co.uk To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 74 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352815553 news.xs4all.nl 6972 [2001:888:2000:d::a6]:39822 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33242 On Friday, November 9, 2012 12:54:56 PM UTC, Artie Ziff wrote: > 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 maybe an xml tool would be better, a good list of xml tools here; http://www.xml-data.info