Re: xml data or other?

2012-11-19 Thread Stefan Behnel
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

RE: xml data or other?

2012-11-19 Thread Prasad, Ramit
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

Re: xml data or other?

2012-11-18 Thread rusi
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

Re: xml data or other?

2012-11-18 Thread rusi
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

Re: xml data or other?

2012-11-18 Thread Artie Ziff
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

Re: xml data or other?

2012-11-13 Thread Dave Angel
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_

Re: xml data or other?

2012-11-13 Thread shivers . paul
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> > > > >

Re: xml data or other?

2012-11-09 Thread rusi
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= """