Page 1 of 1

COntradictory validation error

Posted: Fri Sep 09, 2005 7:12 pm
by Hazmat
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

Posted: Fri Sep 09, 2005 10:06 pm
by george
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