I want to represent German umlauts as in HTML (ie: Ä ü etc.). How can I do this ?
When I add the <!ENTITY> element to an XML document after the XML prolog, it gets marked as error. I also do not understand, how exactly I should do this entity declaration, ie, how it looks like. Thanks.
How do I define entities for the author mode ?
-
- Posts: 4144
- Joined: Fri Mar 28, 2003 2:12 pm
Hello,
Just declare them as character entities:
You can also use the character codes directly:
Regards,
Sorin
Just declare them as character entities:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY Auml 'Ä'>
<!ENTITY uuml 'ü'>
]>
<root>
The Ä and ü characters.
</root>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<root>
The Ä and ü characters.
</root>
Sorin