Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XmlValidatingReader schemas folder >Thread Next - Re: XmlValidatingReader schemas folder Re: XmlValidatingReader schemas folderTo: NULL Date: 8/2/2004 6:53:00 PM I do not understand what you mean by the Schemas folder path. If you mean the property XmlValidatingReader.Schemas, then that property is not a Path but a reference to the XmlSchemaCollection object associated with the reader. What you could do it, in case the internet connection is down, load the Schemas property of the reader by the schemas in the local folder and assign it to the reader like: XmlSchemaCollection collection = new XmlSchemaCollection(); collection.Add(...); collection.Add(...); XmlValidatingReader.Schemas.Add(collection); This WILL validate your document even though you have schemaLocation pointing to internet location. but you still will see the validation warnings telling you that the file on the internet locations are not found. You can choose to ignore these warnings. Validation will still be performed using the attached schema collection "Andres Felipe Arguello" <felipe.arguello@c...> wrote in message news:%23a7cy6NeEHA.3864@T...... > Hello, i have a file watcher service who receives around 15 different xml > documents, the documents point to an internet schemas uri in the header, it > works ok, but in this case my production server doesnt have internet > connection and i need to validate this files with the schemas saved in a > local folder,(around 60 schemas), then i need to change the schemas folder > path to that folder path, without inlcuding one by one all the schemas in > the schemacollection. > Can i do that? if not what is best solution for this problem? > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
