Forum Moderators: open
Cannot find the declaration of element 'c:camera'and xmllint
element camera: Schemas validity error : Element '{http://www.camera.org}camera': No matching global declaration available for the validation root.. I think I didn't understand the concept. But on the other hand this is an example out of the Internet and is similar to many other examples out there.
<?xml version="1.0"?>
<c:camera xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="http://www.camera.org"
xsi:schemaLocation=". camera.xsd">
<c:body>
<c:description>
Ergonomically designed casing for easy handling
</c:description>
</c:body>
<c:lens>
<c:zoom>300mm</c:zoom>
<c:f-stop>1.2</c:f-stop>
</c:lens>
<c:manual_adapter>
<c:speed>1/10,000 sec to 100 sec</c:speed>
</c:manual_adapter>
</c:camera> <?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="camera">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="body"/>
<xsd:element name="lens"/>
<xsd:element name="manual_adapter"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>