Editing DTD declaration

Post here questions and problems related to oXygen frameworks/document types.
nstensland
Posts: 21
Joined: Wed Jan 16, 2019 5:16 am

Editing DTD declaration

Post by nstensland »

Is it possible to edit the DTD declaration using oXygen API, to insert or remove an ENTITY declaration? I can do this by loading the xml from disk and then replacing the using "access.getEditorAccess().reloadContent(newStringReader, true);" but this is unreliable (causing random unparsed entity errors).

Thanks,
Nat
Radu
Posts: 9044
Joined: Fri Jul 09, 2004 5:18 pm

Re: Editing DTD declaration

Post by Radu »

Hi Nat,

You can use the "getDoctype()" and "setDoctype" API methods from the AuthorDocumentController API:

https://www.oxygenxml.com/InstData/Edit ... oller.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nstensland
Posts: 21
Joined: Wed Jan 16, 2019 5:16 am

Re: Editing DTD declaration

Post by nstensland »

Thanks!
Post Reply