Validate xml instance against schema

J

JoeZ

Hi all,

I am using XMLValidatingReader to validate an xml instance against the xml
schema.
Currently the schema has the targetnamespace, but the instance doesn't have
a namespace.
Can I still use XMLValidatingReader to do the validation, without modifying
either the schema or the instance?
This is .NET framework 1.1.

TIA,

JoeZ
 
O

Oliver Sturm

Hello JoeZ,
I am using XMLValidatingReader to validate an xml instance against the xml
schema.
Currently the schema has the targetnamespace, but the instance doesn't
have a namespace.
Can I still use XMLValidatingReader to do the validation, without
modifying either the schema or the instance?

It seems to me you just said that this is what you're currently doing?!?
If it's not, could you please describe what problem you're seeing?

I don't do this all the time - I seem to remember I've usually used
namespaces in XML files that I wanted to validate against a schema. I
guess there may be a problem in your situation, but there may as well be a
workaround - let us know what exactly you're doing and how it fails and
maybe we can come up with some ideas.


Oliver Sturm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top