Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!ENTITY entity-name "entity-value">
- <!ENTITY raquo "»">
- »
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- » « instead of » and «
- » becomes »
- <![CDATA[»]]>
- <!DOCTYPE ROOT_XML_ELEMENT [ <!ENTITY raquo "»"> ]>
- XmlDocument d = new XmlDocument();
- d.LoadXml("<foo/>");
- char c = (char)187;
- d.DocumentElement.InnerText = "Here's that character: " + c;
- Debug.WriteLine(d.OuterXml);
- d.DocumentElement.InnerText = "Here it is as an HTML entity: »";
- Debug.WriteLine(d.OuterXml);
- <foo>Here's that character: »</foo>
- <foo>Here it is as an HTML entity: »</foo>
- <xsl:output use-character-maps="raquo.ent"/>
- <xsl:character-map name="raquo.ent">
- <xsl:output-character character="»" string="»"/>
- </xsl:character-map>
Add Comment
Please, Sign In to add comment