Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Applying schema to a document without a schema

From: ulger@(--------).---------.---
To: NULL
Date: 1/9/2007 12:29:00 AM

Have  you  tried using XMLSchemaCache object?
Basicly you can load your schemas into a schema cache before 
loading/validating xml file then you can use these schemas to validate your 
xml file using DOM/SAX.
Here is a link to an example
http://msdn2.microsoft.com/en-us/library/ms753784.aspx

-- 
S. Huseyin Ulger [MSFT]
MSXML Dev


"Jason Tost" wrote:

> At this point I don't know if the concept is even sound according to XML
> convention; I am wondering if there is a way to apply a schema I have
> locally when parsing a document received from an external source.
> Essentially, rather than validating for the purpose of determining
> whether a document is well-formed according to a schema that it declares
> it conforms to, I want to validate that a document generated by
> something else is well-formed according to an offline schema I install
> with my app.  In essence, I want to use XML validation to verify that
> the contents of a data file are valid, however this must be done on
> systems that do not have access to a network connection necessarily, and
>  the installation path, and therefore the location of my xsd file, can
> vary between installations.  I do not see how to, using MSXML6, to apply
> my own schema in the validation of a document; all of the examples I've
> seen have the document calling out the schema that it will validate
> against, which would require the XML document to be hard coded to some
> universally accessible path.
> 
> Thanks all!
> 


transparent
Print
Mail
Digg
delicious
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