COntradictory validation error

Questions about XML that are not covered by the other forums should go here.
Hazmat
Posts: 1
Joined: Fri Sep 09, 2005 7:02 pm

COntradictory validation error

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply