doctype-declaration for nbsp gets lost after saving a file

"Madlik, Monika (LNG-VIE)" <[email protected]> Fri, 26 Nov 2021 07:20:05 +0000
Newsgroups gmane.editors.xxe.general
Message-ID <PH0PR08MB75537CF8B525FB2C11F9E128E4639@PH0PR08MB7553.namprd08.prod.outlook.com>
Hi Hussein,

we are using XMLMind Professional Edition 9.5.1 and I recognized a problem with my templates.

I created templates that include a doctype-declaration for &nbsp;.

My template looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE artikel [<!ENTITY nbsp "&#160;">]>
<artikel typ="aufsatz">
...
</artikel>

When I open this template via XMLMind and save this file - the doctype-declaration for the nbsp gets lost.

My file looks like this after saving it:
<?xml version="1.0" encoding="UTF-8"?>
<artikel typ="aufsatz">
...
</artikel>

But this is a problem, because often our users use nbsp's and when they try to transform these files they get an error message.

Do you have an idea why the declaration gets lost and how to correct this?

Thanks a lot,
Monika


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support