Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Error while trying to validate a schema - posting again >Thread Next - Re: Error while trying to validate a schema - posting again Re: Error while trying to validate a schema - posting againTo: NULL Date: 9/13/2008 1:17:00 PM YoniSion@g... wrote: > Dim oSettings As New XmlReaderSettings > oSettings.ValidationType = ValidationType.Schema > oSettings.ValidationFlags = > XmlSchemaValidationFlags.ProcessInlineSchema > > Dim xmlr As XmlReader > xmlr = XmlReader.Create(reader, oSettings) > Dim myschema1 As XmlSchema = XmlSchema.Read(xmlr, > AddressOf ValidationCallback) > > so far, pretty much textboook code. problem is, it doesnt even begin > to validate! I get: > "The root element of a W3C XML Schema should be <schema> and its > namespace should be 'http://www.w3.org/2001/XMLSchema'." Not sure which text book suggests that code, you need a a different approach, see http://msdn.microsoft.com/en-us/library/8f0h7att(VS.80).aspx -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
