[r23529]: plugins / XML / trunk / test_data / entities / numeric_entities.xml Maximize Restore History

Download this file

numeric_entities.xml    31 lines (30 with data), 802 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8" ?>
<!-- this document shows various numeric entities, to test the entities-to-chars
action.
-->
<a>
<!-- they may look bad, depending on your font but are valid -->
<fine>
Here are 4 newlines: &#10;&#xA;&#xa;
Here's 'ĂŠ': &#233;
Obligatory cat: &#x1F431;
</fine>
<!-- they are valid unicode, but discouraged in http://www.w3.org/TR/2008/REC-xml-20081126/#NT-Char -->
<discouraged>
<compatibility>
<!-- the combined XII is wrong -->
Why write &#x216B; when you can write &#x2169;&#x2160;&#x2160;?
</compatibility>
<!-- 'delete' character in ASCII -->
<control>
Don't delete: &#x7F;
</control>
<undefined>
Two private use characters: &#x10FFFE; &#x10FFFF;
</undefined>
</discouraged>
<invalid>
Not unicode (parse error): &#x2;
Surrogate: &#D8FF;
</invalid>
</a>