Re-Validate: Button?
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re-Validate: Button?
Post by mariomueller »
Hi all,
I am new to the editor and I wonder how to re-validate a XML after a modification in the XML?
I had an error in a XML that refers to a XSD. After fixing the error in the XML and saving the XML, the error statement is still in the "oXygen task bar".
What do I have to do, that a re-validation gets processed after saving? (Altovas XMLSPY has this feature)
Thanks
Regards
Mario
I am new to the editor and I wonder how to re-validate a XML after a modification in the XML?
I had an error in a XML that refers to a XSD. After fixing the error in the XML and saving the XML, the error statement is still in the "oXygen task bar".
What do I have to do, that a re-validation gets processed after saving? (Altovas XMLSPY has this feature)
Thanks
Regards
Mario
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Re-Validate: Button?
Hello,
By default Oxygen already automatically validates the document as you type, so as soon as you make a change and pause the document gets validated again. However, such an automatic validation does not update or clear the list of errors from the results panel. Only a manual validation (Document > Validate > Validate / Ctrl+Shift+V) does this.
So, if you validated the document manually and got a list of errors in the results panel, after fixing the errors in the document you have to trigger a manual validation again so that the list gets cleared. This can also be done automatically on Save, if you enable the option Check errors on save in Options > Preferences, Editor > Open/Save.
Regards,
Adrian
By default Oxygen already automatically validates the document as you type, so as soon as you make a change and pause the document gets validated again. However, such an automatic validation does not update or clear the list of errors from the results panel. Only a manual validation (Document > Validate > Validate / Ctrl+Shift+V) does this.
So, if you validated the document manually and got a list of errors in the results panel, after fixing the errors in the document you have to trigger a manual validation again so that the list gets cleared. This can also be done automatically on Save, if you enable the option Check errors on save in Options > Preferences, Editor > Open/Save.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi adrian,
thanks for your reply. Seems to work. But now I got another problem. The validation takes 3 Minutes!
The XSD and the XML are both local files (no network traffic)
The XSD has 12925 lines! In XMLSPY it takes just a second. Do I something wrong?
Thanks
Regards
Mario
thanks for your reply. Seems to work. But now I got another problem. The validation takes 3 Minutes!
The XSD and the XML are both local files (no network traffic)
The XSD has 12925 lines! In XMLSPY it takes just a second. Do I something wrong?
Thanks
Regards
Mario
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Re-Validate: Button?
Hi,
It's unlikely for the validation to take 3 minutes, if all resources are local.
Check for imports/includes within the XML and XSD that refer remote schemas (or other resources).
To debug remote references that are unresolved, go to Options > Preferences, XML > XML Catalog and set Verbosity to Unresolved entities. When you validate, you will get in the Catalogs view the list of URIs and SystemIDs that are not resolved.
Regards,
Adrian
It's unlikely for the validation to take 3 minutes, if all resources are local.
Check for imports/includes within the XML and XSD that refer remote schemas (or other resources).
To debug remote references that are unresolved, go to Options > Preferences, XML > XML Catalog and set Verbosity to Unresolved entities. When you validate, you will get in the Catalogs view the list of URIs and SystemIDs that are not resolved.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi Adrian,
I did what you told without any improvement. Is it possible to upload the XSD and the XML so you could do a check?
Regards
Mario
I did what you told without any improvement. Is it possible to upload the XSD and the XML so you could do a check?
Regards
Mario
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Re-Validate: Button?
Hi,
Sure, you can send them to support@oxygenxml.com or upload them via our Technical Support form, select Other and fill email, subject and description. File attachment is at the bottom of the form.
Regards,
Adrian
Sure, you can send them to support@oxygenxml.com or upload them via our Technical Support form, select Other and fill email, subject and description. File attachment is at the bottom of the form.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi Adrian,
I used the "technical contact" form and submitted already.
Regards Mario
I used the "technical contact" form and submitted already.
Regards Mario
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi adrian,
many thanks for the good work. I changed from 99999 to unbounded. But the error check still takes a lot of time (> 2 minutes).
How many minutes/seconds did your error check last?
Thanks
Regards
Mario
many thanks for the good work. I changed from 99999 to unbounded. But the error check still takes a lot of time (> 2 minutes).
How many minutes/seconds did your error check last?
Thanks
Regards
Mario
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Re-Validate: Button?
Hi,
I'm afraid that still doesn't resolve the long validation time. It's about 2 minutes with Xerces, or 2 minutes and 45 seconds with Saxon-EE.
I'm still looking into possible causes.
Regards,
Adrian
I'm afraid that still doesn't resolve the long validation time. It's about 2 minutes with Xerces, or 2 minutes and 45 seconds with Saxon-EE.
I'm still looking into possible causes.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi Adrian,
thanks for the very good and quick support. If you find reasons to speed up the performance, please let me know.
Regards
Mario
thanks for the very good and quick support. If you find reasons to speed up the performance, please let me know.
Regards
Mario
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Re-Validate: Button?
Hi,
We have tested some more and it only worked well after replacing all maxOccurs="99", maxOccurs="99999" and maxOccurs="999999" with maxOccurs="unbounded".
So, it seems even relatively low values like 99 (maxOccurs="99") trigger the performance issue in both Xerces and Saxon-EE.
Regards,
Adrian
We have tested some more and it only worked well after replacing all maxOccurs="99", maxOccurs="99999" and maxOccurs="999999" with maxOccurs="unbounded".
So, it seems even relatively low values like 99 (maxOccurs="99") trigger the performance issue in both Xerces and Saxon-EE.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: Re-Validate: Button?
Post by mariomueller »
Hi Adrian,
it worked! Thanks a lot, we bought a permanent key
Regards Mario
it worked! Thanks a lot, we bought a permanent key

Regards Mario
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service