Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XmlValidatingReader schemas folder

From: "Zafar Abbas [MSFT]" <zafara@---------.--->
To: 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?
>
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent