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

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: 6582
Joined: Fri Jul 09, 2004 5:18 pm

Re: Editing DTD declaration

Post by Radu » Mon May 13, 2019 2:49 pm

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 » Mon May 13, 2019 11:43 pm

Thanks!

Post Reply