There is no direct way to ignore validation of certain components. You could
"Kent Ogletree" <kent@nospam.actionic.com> wrote in message
news:OW2bm7P9EHA.1296@TK2MSFTNGP10.phx.gbl...
> > It should be possible to limit Validation to specific namespaces, so
> > this is not necessarily a problem.
>
> Where might I find a reference to limiting the validation to the data in a
> specific namespace?
>
> Kent
>
>
>
> "Bjoern Hoehrmann" <bjoern@hoehrmann.de> wrote in message
> news:41e3d520.210891546@news.bjoern.hoehrmann.de...
> >* Kent Ogletree wrote in microsoft.public.dotnet.xml:
> >>I am porting a Java XML Validation class over to C# and I am having a
> >>problem finding exactly what I need to acomplish the task.
> >>
> >>First I need to test for well formedness. I know this is usually
something
> >>that does not need to be done, however in this case it is required. Is
the
> >>best way to do this to validate to the schema and if no exception is
> >>thrown
> >>it must be well formed? What exception would be thrown if the document
is
> >>found to not be well formed?
> >
> > Yes, that's in fact the only way for most processors. The exception
> > depends on the interface you use (XmlDocument, XmlTextReader, etc.)
> >
> >>Second, these documents sometimes come with additional vendor specified
> >>metadata included. When they do there is additional XSDs included. How
> >>would
> >>I load these into the cache and know the proper name space for them
since
> >>I
> >>can not know in advance if they are included or even their name?
Depending
> >>on the source of them, these XSDs could have an unknown variaty of
> >>different
> >>namespaces. We do not use this data but my understanding of Validation
is
> >>if
> >>we do not want an error during validation we need to include the XSDs in
> >>the
> >>process.
> >
> > It should be possible to limit Validation to specific namespaces, so
> > this is not necessarily a problem. At least XML Schema does not require
> > positive validation of all elements to determine schema-validity.
> > --
> > Björn Höhrmann · mailto:bjoern@hoehrmann.de ·
http://bjoern.hoehrmann.de > > Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
http://www.bjoernsworld.de > > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·
http://www.websitedev.de/ >
>