Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display   in XML output

I am generating the XML output using XSLT. I need to display   in the XML output. I have tried few options to display   but it displays  . Can anyone help me on this issue?

Thanks.

like image 765
dirin Avatar asked Mar 08 '12 21:03

dirin


People also ask

How do I change Display settings?

Change display settingsOpen your phone's Settings app. Tap Display. Tap the setting that you want to change.

How do I enable Display on Windows?

Select Start , then open Settings . Under System , select Display . Your PC should automatically detect your monitors and show your desktop.


1 Answers

Unless your XML has a DTD which says what   means, you cannot use  . The only reason this works in HTML is because the XHTML DTD defines what it means (for XHTML) or it's just baked in to the parser (HTML).

In general you should not use named character entities in XML because such documents cannot be parsed properly without their DTD. (And DTDs are a big hassle.) Use the character directly, or use a numeric character reference.

For a non-breaking space, you can use   or  , which are the decimal and hexadecimal unicode code point numbers respectively.

like image 61
Francis Avila Avatar answered Sep 23 '22 16:09

Francis Avila