A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-May/119405.html below:

[Python-Dev] c/ElementTree XML serialisation

[Python-Dev] c/ElementTree XML serialisation [Python-Dev] c/ElementTree XML serialisationAlex Leach albl500 at alexleach.org.uk
Wed May 9 14:31:54 CEST 2012
On Wednesday 09 May 2012 08:10:34 And Clover wrote:
| On 2012-05-08 23:41, Alex Leach wrote:
| > I still need<  and>  symbols. I have no idea how to write a loop in
| > javascript without one.
| Just &-escape them same as you do in any other element. 'style' and
| 'script' do not require any special handling in XML.
| 
| <svg xmlns="http://www.w3.org/2000/svg">
|      <script type="text/javascript">
|          for (var i= 0; i&lt;3; i++)
|              alert(i);
|      </script>
|      <style type="text/css">
|          circle[class='foo&lt;bar'] { fill: blue; }
|      </style>
|      <circle cx="200" cy="200" r="100" class="foo&lt;bar"/>
| </svg>
| 
| ('>' doesn't necessarily need escaping anyway, except as part of a ]]>
| sequence in text content.)
Cheers,
I'll have to check that. I assumed &lt; etc. didn't get executed properly in 
SVG files. Assuming you're correct (you python-devs always are!),  it must have 
been another problem that was causing issues...
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4