CDATA and lxml

2008-04-11 Thread Silfheed
Heyas So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and spit it back out. Parsing is pretty easy with lxml, but it's the spitting back out that's giving me issues. The fact that lxml strips all the CDATA stuff off isnt really a

Re: [lxml-dev] CDATA and lxml

2008-04-11 Thread Stefan Behnel
Stefan Behnel wrote: It's not as trivial as it sounds. Removing the CDATA sections in the parser is just for fun. ... *not* just for fun ... obviously ... Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: CDATA and lxml

2008-04-11 Thread Stefan Behnel
Silfheed wrote: So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and spit it back out. Parsing is pretty easy with lxml, but it's the spitting back out that's giving me issues. The fact that lxml strips all the CDATA stuff off

Re: [lxml-dev] CDATA and lxml

2008-04-11 Thread Stefan Behnel
Hi again, Stefan Behnel wrote: Silfheed wrote: So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and spit it back out. Parsing is pretty easy with lxml, but it's the spitting back out that's giving me issues. The fact that lxml

Re: CDATA and lxml

2008-04-11 Thread Silfheed
On Apr 11, 10:33 am, Stefan Behnel [EMAIL PROTECTED] wrote: Hi again, Stefan Behnel wrote: Silfheed wrote: So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and spit it back out. Parsing is pretty easy with lxml, but it's

Re: CDATA and lxml

2008-04-11 Thread Silfheed
On Apr 11, 3:49 pm, Silfheed [EMAIL PROTECTED] wrote: On Apr 11, 10:33 am, Stefan Behnel [EMAIL PROTECTED] wrote: Hi again, Stefan Behnel wrote: Silfheed wrote: So first off I know that CDATA is generally hated and just shouldn't be done, but I'm simply required to parse it and