Violation of nbsp default handler implementation

I have a default handler implementation. When it gets to the character data, parsing stops. Is there a reason why this is being done? Are there any additional properties I need to set in order for it to deal with & nbsp?

0


source to share


2 answers


It breaks because the XML object is not defined. You can add

<!DOCTYPE document  SYSTEM "document.dtd" [ 
<!ENTITY nbsp "&#160;"> 
]>

      



Or just use &#160;

. (Note the ";" at the end)

Also see here .

+2


source


&nbsp;

is not a valid xml object. You can try replacing it instead &#160;

, it does the same thing (non-breaking space).



0


source







All Articles