Prasad, Ramit, 19.11.2012 22:42:
> Artie Ziff wrote:
>> Writing XML files so to see whats happening. My plan is to
>> keep xml data in memory and parse with xml.etree.ElementTree.
>>
>> Unfortunately, xml parsing fails due to angle brackets inside
>> description tags. In particular, xml.etree.Eleme
Artie Ziff wrote:
>
> On 11/9/12 5:50 AM, rusi wrote:
> > On Nov 9, 5:54 pm, Artie Ziff wrote:
> > # submit correctedinput to etree
> I was very grateful to get the "leg up" on getting started down that
> right path with my coding. Many thanks to you, rusi. I took your
> excellent advices and hav
On Nov 18, 8:54 pm, rusi wrote:
> Start with cgi.escape perhaps?http://docs.python.org/2/library/cgi.html
This may be a better link for starters
http://wiki.python.org/moin/EscapingHtml
(Note the escaping xml at the bottom)
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 18, 6:32 pm, Artie Ziff wrote:
> Unfortunately, xml parsing fails due to angle brackets inside
> description tags. In particular, xml.etree.ElementTree.parse()
> aborts on '<' inside xml data such as the following:
>
>
>
> This testcase tests if crontab installs the cronjob
On 11/9/12 5:50 AM, rusi wrote:
On Nov 9, 5:54 pm, Artie Ziff wrote:
# submit correctedinput to etree
I was very grateful to get the "leg up" on getting started down that
right path with my coding. Many thanks to you, rusi. I took your
excellent advices and have this working.
class Converte
On 11/09/2012 07:54 AM, 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_
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>
>
>
>
>
On Nov 9, 5:54 pm, Artie Ziff wrote:
> Hello,
>
> I want to process XML-like data like this:
> Edits were substituting '/' for '\' on the end tags, and adding the
> following structure:
If thats all you want, you can try the following:
# obviously this should come from a file
input= """