469,612 Members | 2,163 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

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

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
1 2105
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.

Similar topics

2 posts views Thread by maddalimurali | last post: by
1 post views Thread by Mark Olbert | last post: by
6 posts views Thread by Iain | last post: by
reply views Thread by Adam Smith | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.