Re: Cannot find the declaration of element 'database'

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Marc

Re: Cannot find the declaration of element 'database'

Post by Marc »

Hi George,

Thank you very much for your reply. What does "The schemaLocation attribute should contain pairs of the form namespace uri followed by schema location" mean?
I have corrected the mistakes you told me but now by validating again (xml-doc)it tells me the following: "E cvc-complex-type.2.4.a: Invalid content was found starting with element 'department'. One of '{"":department}' is expected." And what else did I now forget?
My xsd starts with:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace="http://www.w3.org">
<xs:element name="department" maxOccurs="1">
...

Thank you very very much for your help.
Marc
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Marc,

The error message tells you that the expected element at that position should be a department element from no namespace while it seems to me that you have a department element from a specific namespace.

Best Regards,
George
Post Reply