I am trying to define non breaking space entity
in the <!doctype />
declaration. Code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ <!ENTITY nbsp " "> ] />
<html xmlns="http://www.w3.org/1999/xhtml">
.. ....
But still when i am creating an XDocument object from the above document, i am getting an exception
Undefined entity  .
What i am doing wrong ?
You can try with this entity  
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With