XSD & XML Validation Problems
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 37
- Joined: Tue Nov 25, 2003 3:31 am
XSD & XML Validation Problems
I am running eclipse 3.0.0 on XP Pro, using Oxygen 4.2.0.
I've had problems with xsd and xml validation that are not due to my xsd and xml code. I can make the errors go away without changing the code. The problems are difficult to reproduce on demand, but here are a couple of examples.
1.In xsd I added the attribute used=â€required †to the node attribute definition.
The xsd validated OK.
A test document, missing the node attribute, validated OK, which was wrong.
I forced an error in the test doc (by misspelling the element name), on the element missing the node attr.
Validation detected my forced error, and did not detect the missing node attr, as expected.
I fixed the forced error.
Validation finally detected the missing node attribute.
2.Occasionally validation on the xsd or the xml produces several ridiculous errors.
I boot eclipse.
Validation shows a clean xsd and xml.
In these situations, I do not have to change my code to get things working, so I suspect bugs, like the validator is depending on stale data. Reboot, or forcing it to refresh its internal data somehow, appears to be the workaround.
Sorry its not a good test case,
Bill.
I've had problems with xsd and xml validation that are not due to my xsd and xml code. I can make the errors go away without changing the code. The problems are difficult to reproduce on demand, but here are a couple of examples.
1.In xsd I added the attribute used=â€required †to the node attribute definition.
The xsd validated OK.
A test document, missing the node attribute, validated OK, which was wrong.
I forced an error in the test doc (by misspelling the element name), on the element missing the node attr.
Validation detected my forced error, and did not detect the missing node attr, as expected.
I fixed the forced error.
Validation finally detected the missing node attribute.
2.Occasionally validation on the xsd or the xml produces several ridiculous errors.
I boot eclipse.
Validation shows a clean xsd and xml.
In these situations, I do not have to change my code to get things working, so I suspect bugs, like the validator is depending on stale data. Reboot, or forcing it to refresh its internal data somehow, appears to be the workaround.
Sorry its not a good test case,
Bill.
Bill W.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Bill,
Just make sure you save the schema file after you make changes to it. Oxygen will get it from disk when you perform a validate action on the instance document.
If you will have this problem again send us the XML and schema files if possible at support@oxygenxml.com.
Best Regards,
George
Just make sure you save the schema file after you make changes to it. Oxygen will get it from disk when you perform a validate action on the instance document.
If you will have this problem again send us the XML and schema files if possible at support@oxygenxml.com.
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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