XML validation failure against XSD schema?

Your problem is that your schema doesn't specify a target namespace - consequently all types are associated with the null namespace.

Your problem is that your schema doesn't specify a target namespace - consequently all types are associated with the null namespace. Your error is caused because the schema specifies that the DataBodyTemperature element (which is in the null namespace) should contain only Answer and AmbientTemperature elements (both of which are declared in the null namespace), however in your document these elements are in fact in the Docobo. DataBodyTemperature namespace, essentially making them completely different elements.

A sample of xml conforming to your given schema would be: 1 1 Notice that there is no namespace declaration - all elements are in the default namespace. I suspect what you really want however is to modify your xsd so that it specifies a target namespace. Note that you now also need to qualify the tDataItem and tDataBodyTemperature types as they are no longer declared in the null namespace.

Also note that in your sameple XML the DataItem and DataBodyTemperature elements aren't in the "Docobo. DataBodyTemperature" namespace and so now wouldn't be validated against the above schema. You may also find it helpeful to get a sample xml document for a schema - you can do this in Visual Studio 2008 or later using the XML Schema Explorer, see How to generate sample XML documents from their DTD or XSD?.

No the schema specifies a DataItem element of type tDataItem and the tDataItem has a choice of elements (currently only DataBodyTemperature). The DataBodyTemperature is of type tDataBodyTemperature which then contains 2 elements; The answer and AmbientTemperature – Shahid Sep 21 at 10:43 @Shahid Ah - you updated your question, I've now fixed my answer. – Justin Sep 21 at 11:01 Thank you justin.

I put just one choice 'DataBodyTemperature' here but I have many other choices all with different namespace qualifiers. Can we use multiple target namespaces. Is it possible to only qualify the tDataBodyTemperature with a namespace and leave any other elements with the null namespace – Shahid Sep 21 at 11:06 1 @Shahid Yes you can use multiple target namespaces, however to my knowledge you would need a different XSD schema document for each namespace, for example one document which describes all elements in the null namespace and another describing all elements in the Docobo.

DataBodyTemperature namespace. – Justin Sep 21 at 11:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions