Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 15 Jul 2008 11:50:49 +0200,    group: microsoft.public.xml        back       


How to redirect xsd:import and xsd:include?   
Hi,

Using the SchemaCache i can redirect schemas to a location other than the 
locations specified by xsi:schemaLocation and xsi:noNamespaceSchemaLocation. 
For example:

    xsi:schemaLocation="http://www.w3.org/2001/XMLSchema 
http://www.w3.org/2001/XMLSchema.xsd"

This tell MSXML where to find the XMLSchema for namespace 
http://www.w3.org/2001/XMLSchema (http://www.w3.org/2001/XMLSchema.xsd), but 
using the SchemaCache i can tell MSXML to look somewhere else (e.g., on my 
PC):

    SchemaCache.add(http://www.w3.org/2001/XMLSchema, 
"file:///C:/XMLSchema.xsd");

So far so good. But if the XMLSchema contains a reference to another 
XMLSchema (xsd:import or xsd:include) i cannot redirect those schemas to 
another location. Using URL Monikers may be a solution, but is there another 
one?

Thank you,
- Gerben Abbink
date: Tue, 15 Jul 2008 11:50:49 +0200   author:   Gerben Abbink

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us