Hi all,
I have a problem on validating a xml fragment using a single namespace
schema which spread across multiple schema files using include in the
master schema file. No matter how I change the xml fragment (to include
default namespace xmlns='urn:xxx:yy' and any other namespace it may
have), I still get the same error.
'urn:xxx:yy:Header' element is not declared. An error occurred at , (1,
2).
I have inspected the XmlSchema and its XmlSchemaObject, their SourceUri
are all the same (which is the master schema uri).
Is anybody have the same problem?
The code I was using is from the MSDN xml fragment validation, I have
altered it for testing, the only difference between that one and my one
is mine one have a schema using include to put other schema files into
a single namespace.
The "Header" element is in one of the included schema file, and it is a
child node of the root node, and of course the xml fragment only
contains this "Header" node and its child.
Please help.
Best regards
Wallace