tags:

views:

538

answers:

2

I am using VB9's inline XML, and I have a need to specify a non-breaking space. Where you would normally use " " in html, using it in inline XML produces the "XML entity references are not supported" error. How do you specify a non-breaking space?

+2  A: 

Most named entities are not supported in XML unless you explicitly declare them in a DTD. You can, however, use the unicode entity & #160; (without the space, of course).

This is a good site for looking up unicode characters.

James Sulak
A: 

&160; gives ?? when converted with Xelement.ToSTring(). Any solutions for this?