Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33019
| Date | 2012-11-09 04:54 -0800 |
|---|---|
| From | Artie Ziff <artie.ziff@gmail.com> |
| Subject | xml data or other? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3490.1352465695.27098.python-list@python.org> (permalink) |
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