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


Groups > comp.lang.python > #33242

Re: xml data or other?

Newsgroups comp.lang.python
Date 2012-11-13 06:05 -0800
References <mailman.3490.1352465695.27098.python-list@python.org>
Subject Re: xml data or other?
From shivers.paul@yahoo.co.uk
Message-ID <mailman.3627.1352815553.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Friday, November 9, 2012 12:54:56 PM UTC, Artie Ziff wrote:
> 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

maybe an xml tool would be better, a good list of xml tools here; http://www.xml-data.info

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


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