validate document using oxygen api

Oxygen general issues.
guna@ebscohost.com
Posts: 27
Joined: Tue Nov 17, 2009 10:16 pm

validate document using oxygen api

Post by guna@ebscohost.com »

HI,
is there way to call oxygen api and check whether the xml document is valid.

if yes, can i know the api call.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: validate document using oxygen api

Post by Radu »

Hi,

As the validation is made automatically on document changes we did not consider adding API for it.
If you can give us a use case maybe we can consider adding support in the API for validation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
guna@ebscohost.com
Posts: 27
Joined: Tue Nov 17, 2009 10:16 pm

Re: validate document using oxygen api

Post by guna@ebscohost.com »

hi,
we have a business rule where,

- before checkin the document to our repository, the document should be xml valid. if the document is not valid, then we should throw an error message saying "please correct all dtd errors before checkin"
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: validate document using oxygen api

Post by Radu »

Hi,

In the Oxygen Preferences-> Editor / Open/Save options page you have a checkbox called Check errors on save.
It will present a warning when the user wants to save and the document contains errors. Is it enough for your case? Is the check-in operation distinct from the Save operation?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply