Page 1 of 1

validate document using oxygen api

Posted: Mon Feb 01, 2010 9:13 pm
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.

Re: validate document using oxygen api

Posted: Tue Feb 02, 2010 10:25 am
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

Re: validate document using oxygen api

Posted: Tue Feb 02, 2010 5:10 pm
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"

Re: validate document using oxygen api

Posted: Wed Feb 03, 2010 10:38 am
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