A
askar.bektassov
Hello guys, I'm new to XML so sorry for probably 'obvious' question
I have the following xml schema
<!-- dynamicMeasurement.xsd -->
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:measure="http://www.example.org"
targetNamespace="http://www.example.org">
<xs:complexType name="dynamicObjectsContainer">
...
</xs:complexType>
...
</xs:schema>
<!-- dynamicObject.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<measure:dynamicObjectsContainer
xmlns:measure="http://www.example.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.org dynamicMeasurement.xsd">
...
</measure:dynamicObjectsContainer>
But whenever I try to validate the xml file (I'm using oxygen plugin
for eclipse 3.1) I got
cvs-elt.1: Cannot find the declaration of element
'measure:dynamicObjectContainer'
@see: http://www.w3.org/TR/xmlschema-1/#cvs-elt
So the problem is: do I miss some kind of declaration, or namespace?
incredibly I believe I copied another xml, xsd definitions (stored in
another directory) which works without any problem.
Thanks in advance,
cheers
I have the following xml schema
<!-- dynamicMeasurement.xsd -->
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:measure="http://www.example.org"
targetNamespace="http://www.example.org">
<xs:complexType name="dynamicObjectsContainer">
...
</xs:complexType>
...
</xs:schema>
<!-- dynamicObject.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<measure:dynamicObjectsContainer
xmlns:measure="http://www.example.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.org dynamicMeasurement.xsd">
...
</measure:dynamicObjectsContainer>
But whenever I try to validate the xml file (I'm using oxygen plugin
for eclipse 3.1) I got
cvs-elt.1: Cannot find the declaration of element
'measure:dynamicObjectContainer'
@see: http://www.w3.org/TR/xmlschema-1/#cvs-elt
So the problem is: do I miss some kind of declaration, or namespace?
incredibly I believe I copied another xml, xsd definitions (stored in
another directory) which works without any problem.
Thanks in advance,
cheers