Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-09 Thread Alex Leach
On Wednesday 09 May 2012 08:02:09 Xavier Morel wrote: | Erm… you have them? What do you think `<` and `>` are? I was under the impression that those (let's call them) HTML representations of < and > don't get interpreted correctly by Javascript engines. I'll have to check that though.. | | As

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-09 Thread Alex Leach
On Wednesday 09 May 2012 08:02:09 Xavier Morel wrote: | Erm… you have them? What do you think `<` and `>` are? I was under the impression that those (let's call them) HTML representations of < and > don't get interpreted correctly by Javascript engines. I'll have to check that though.. | | As

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-09 Thread Martin v. Löwis
Is there a better way? Dear Alex, As Terry indicates: python-dev is a list for the development *of* Python, not the development *with* Python. Use the general python-list or the xml-sig list for this kind of question. Regards, Martin ___ Python-De

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Xavier Morel
On 2012-05-09, at 01:41 , Alex Leach wrote: > > True. I might not need the CDATA tag to wrap the javascript then, but I still > need < and > symbols. I have no idea how to write a loop in javascript > without > one. Erm… you have them? What do you think `<` and `>` are? As to writing a loop

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
On Tuesday 08 May 2012 23:15:43 And Clover wrote: | | CDATA sections are of use for hand-authoring readability, but don't help | in machine-serialised documents. You don't get away from the need to | encode out-of-band sequences (notably ]]> is still invalid) so it | doesn't buy you any simplicity

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread And Clover
On 08/05/12 17:21, Alex Leach wrote: > The w3c SVG specification / recommendation > allows for

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Terry Reedy
On 5/8/2012 12:21 PM, Alex Leach wrote: Is there a better way? This really looks like a python-list question. I don't see that it has much to do with developing 3.3. (any more than most pythonl-list questions.) -- Terry Jan Reedy ___ Python-Dev m

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
Furthermore, if I use the "html" method (an option given to ElementTree.write), closing tags are converted to lower case, which leads to an XML parsing error with camel-cased tag names. Using the "text" method instead removes all tags, and I get a ValueError if I try to use the "c14n" method. T