Page 1 of 1

Editing DTD declaration

Posted: Thu May 09, 2019 7:54 pm
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

Re: Editing DTD declaration

Posted: Mon May 13, 2019 2:49 pm
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

Re: Editing DTD declaration

Posted: Mon May 13, 2019 11:43 pm
by nstensland
Thanks!