Re: XML validation with multiple schemas
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Mon, 28 Jan 2008 15:00:00 +0100
gxdata wrote:
I'm finding errors that I don't understand with the MSDN Library code at http://msdn2.microsoft.com/en-us/library/wc8csdkz.aspx (XML validation with multiple schemas), which relate to the dvd schema that's inline within the xml data file (mixed.xml) -
That example is for .NET 1.1 where you need to use XmlValidatingReader.
With .NET 2.0 and later you should use XmlReader with the proper XmlReaderSetttings <URL:http://msdn2.microsoft.com/en-us/library/system.xml.xmlreadersettings.aspx> and you need to set the validation flag to process inline schemas <URL:http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemavalidationflags.aspx> if you want to validate against inline schemas.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.
- Follow-Ups:
- Re: XML validation with multiple schemas
- From: gxdata
- Re: XML validation with multiple schemas
- References:
- XML validation with multiple schemas
- From: gxdata
- XML validation with multiple schemas
- Prev by Date: XML validation with multiple schemas
- Next by Date: Re: XML validation with multiple schemas
- Previous by thread: XML validation with multiple schemas
- Next by thread: Re: XML validation with multiple schemas
- Index(es):
Relevant Pages
|