tags:

views:

130

answers:

2

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

A: 

  is not a valid xml entity. You might try replacing it with   instead, it does the same thing (non-breaking space).

Ben Noland
It breaks/stops parsing on as well.
Knoth23
+1  A: 

This breaks because the XML entity is not defined. You could add

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

Or just use &#160; instead. (Note the ";" at the end)

Also see here.

tcurdt