By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

Validating XML fragment with single namespace schema spread into multiple schema files using include.

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
We would like you to post your schema and your code.

Thanks.

"Wallace" <Wa************@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.