[xsd-users] Namespaces

Boris Kolpackov boris at codesynthesis.com
Mon Jun 18 09:51:01 EDT 2012


Hi Daniel,

Daniel Berglund <daniel.berglund at scilifelab.se> writes:

> If I add a namespace xmlns="test_space" to the xml and 
> targetnamespace="test_space" it works. So many question is if there
> is a declaration for namespace missing in the xml file or am I simply
> missing to write something in the xsd file?

Its hard to tell from the cut-out parts that you have shown, but
it seem that you found a combination that works. Generally, if
your XML uses a namespace, then there should be a corresponding
targetNamespace in the schema, and vice-versa.

Boris



More information about the xsd-users mailing list