Ecvc-elt.1:Cannot find the declaration of element 'database'
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Ecvc-elt.1:Cannot find the declaration of element 'database'
Post by Marc »
Hi,
I have just started learning XML and I don't know what this error message means. How can I solve this problem. I made a project containing a xml-doc and a xsd-doc. The xsd is valid but the xml not, why?
xml-doc:
<?xml version="1.0" encoding="ISO-8859-1">
<database xmlns="http://www.w3.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="database.xsd">
<department>...
xsd-doc:
<?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="database">...
Please help me.
email: BlattM@web.de
I have just started learning XML and I don't know what this error message means. How can I solve this problem. I made a project containing a xml-doc and a xsd-doc. The xsd is valid but the xml not, why?
xml-doc:
<?xml version="1.0" encoding="ISO-8859-1">
<database xmlns="http://www.w3.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="database.xsd">
<department>...
xsd-doc:
<?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="database">...
Please help me.
email: BlattM@web.de
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Mark,
First your document is not well formed the XML header should end with
?>. Then the schemaLocation attribute is specified as SchemaLocation. Third the schemaLocation attribute should contain pairs of the form namespace uri followed by schema location, see http://www.w3.org/TR/xmlschema-1/#schema-loc
Correcting these gets something like below:
which you should validate without further problems.
Best Regards,
George
First your document is not well formed the XML header should end with
?>. Then the schemaLocation attribute is specified as SchemaLocation. Third the schemaLocation attribute should contain pairs of the form namespace uri followed by schema location, see http://www.w3.org/TR/xmlschema-1/#schema-loc
Correcting these gets something like below:
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<database xmlns="http://www.w3.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org database.xsd">
</database>
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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