Tree Editor removes DOCTYPE definition

Having trouble installing Oxygen? Got a bug to report? Post it all here.
agrz
Posts: 1
Joined: Wed Sep 14, 2005 12:03 pm

Tree Editor removes DOCTYPE definition

Post by agrz »

Hi,
I am just testing oxygen and have one problem. When I open a xml file with a DOCTYPE definition (Sun DTD Web Application 2.3 in this case) in Tree editor mode, the DTD is loaded and used correctly.
But when I save the document, the whole DOCTYPE tag is removed and the Document is saved without it. In the normal editor the DOCTYPE is saved correctly. This is very nasty, because I have to add the DOCTYPE each time I used the tree editor.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi

Thank you for reporting this bug.
Indeed the Tree Editor removes the DOCTYPE declaration when saving the tree back to XML format.
We fixed this and the fix will be soon available in the 6.2 release.
As a workaround you can go to Oxygen Options Menu -> Preferences -> Tree Editor and check the "Format and indent on save" option.
This will format and indent the document on save but will leave the DOCTYPE untouched.


Regards, Radu.
Post Reply