Dirk, as I said, what you wish not correct XML... so you will not get this outputted. Dirk Schumacher wrote: > p.setText("?nbsp;little indented text."); > Try ((char) 160)+ "little indented" instead of , this is exactly the definition of nbsp. But be careful that, typically, a console such as system.out does not display such correctly. paul