Skip to content

Instantly share code, notes, and snippets.

@robinpokorny
Created February 26, 2012 21:47
Show Gist options
  • Save robinpokorny/1919140 to your computer and use it in GitHub Desktop.
Save robinpokorny/1919140 to your computer and use it in GitHub Desktop.
Valid XML with exotic characters
<?xml version="1.05" encoding="UTF-8"?>
<!-- With version 1.05 this should be processed as XML 1.0 -->
<exotic>
<!--
"‍" Zero Width Joiner &#x200d;
"‌" Zero Width Non-Joiner &#x200c;
Note that a valid tag may not start with a number or be empty. Both of the following tags are still valid - there is a non-printable character on the first position.
-->
<‍3> "‍" Zero Width Joiner &#x200d; <‌>¡"‌" Zero Width Non-Joiner &#x200c;!</‌></‍3>
<!--
Chinese characters
-->
<繁體中文>traditional Chinese</繁體中文>
<繁体中文>simplified Chinese</繁体中文>
<!--
ጁ Ethiopic Syllable Ju &#x1301;
ዪ Ethiopic Syllable Yi &#x12ea;
-->
<ጁዪ Ju="&#x1301;" Yi="&#x12ea;"/>
<!--
ဪ Myanmar Letter Au &#x102a;
ဤ Myanmar Letter Ii &#x1024;
ဏ Myanmar Letter Nna &#x100f;
-->
<ဪဤဏ>
Myanmar Letter Au &#x102a; +
Myanmar Letter Ii &#x1024; +
Myanmar Letter Nna &#x100f;
</ဪဤဏ>
<!--
€ Euro Sign &#x20ac;
₱ Peso Sign &#x20b1;
Note that using $ or £ the tag would not valid.
-->
<price>
<€ code="EUR">200</€>
<₱ code="CUP">267</₱>
</price>
<!--
℃ Degree Celsius &#x2103;
℉ Degree Fahrenheit &#x2109;
-->
<temperature>
<℃>36,9</℃>
<℉>98,42</℉>
</temperature>
<!--
ℕ Double-Struck Capital N &#x2115;
ℤ Double-Struck Capital Z &#x2124;
ℚ Double-Struck Capital Q &#x211a;
ℝ Double-Struck Capital R &#x211d;
ℂ Double-Struck Capital C &#x2102;
-->
<numbers>
<ℕ>Natural</ℕ>
<ℤ>Integers</ℤ>
<ℚ>Rational - <↉>↉ Vulgar Fraction Zero Thirds &#x2189;</↉></ℚ>
<ℝ>Real</ℝ>
<ℂ>Complex</ℂ>
</numbers>
</exotic>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment