COntradictory validation error
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Fri Sep 09, 2005 7:02 pm
COntradictory validation error
I'm getting the following error and I'm not sure why. I'm getting the following error and I don't understand it. It seems contradictory. Does anyone know what might be going on?
Severity Description Resource In Folder Location Creation Time
2 cvc-complex-type.2.4.a: Invalid content was found starting with element 'Ticket'. One of '{Ticket}' is expected.
@see: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
Severity Description Resource In Folder Location Creation Time
2 cvc-complex-type.2.4.a: Invalid content was found starting with element 'Ticket'. One of '{Ticket}' is expected.
@see: http://www.w3.org/TR/xmlschema-1/#cvc-complex-type
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
The error signals that the element is in the wrong namespace. I do not have a sample document so I will just try to guess: you have a default namespace defined in your document xmlns="something" and that will imply that the Ticket element in the instance document belongs to that namespace while the schema defines/expects a Ticket element from no namespace. If you let the oXygen content completion enter that element it should place it in the right namespace. Place the caret just before the Ticket element from your instance document and press < and select the Ticket element from the content completion popup.
Best Regards,
George
The error signals that the element is in the wrong namespace. I do not have a sample document so I will just try to guess: you have a default namespace defined in your document xmlns="something" and that will imply that the Ticket element in the instance document belongs to that namespace while the schema defines/expects a Ticket element from no namespace. If you let the oXygen content completion enter that element it should place it in the right namespace. Place the caret just before the Ticket element from your instance document and press < and select the Ticket element from the content completion popup.
Best Regards,
George
Return to “General XML Questions”
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