Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating
Message
De
20/09/2003 07:02:41
 
 
À
20/09/2003 03:54:34
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Divers
Thread ID:
00830186
Message ID:
00830849
Vues:
23
This message has been marked as the solution to the initial question of the thread.
You misunderstood me. Ymust specify key, not the path. Here are two options:
1. If you have (or want to use) configuration file, it must have the fillowing structure:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
        ...
	<appSettings>
                ...
		<add key="XSDSchemaPath" value="c:\file.xsd" />
                ...
	</appSettings>
        ...
</configuration>
(where "..." denotes other parts of the file).
After this you must use the key, not the path:
xmlschcolImportXML.Add("http://www.tempuri.org/dsfile.xsd", New XmlTextReader(ConfigurationSettings.AppSettings("XSDSchemaPath")))
For more information about custom configuration settings, see following topic in VS .NET help: ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpgenref/html/gngrfappsettingselement.htm.
2. If you do not want to use configuration file, simply specify the path:
xmlschcolImportXML.Add("http://www.tempuri.org/dsfile.xsd", New XmlTextReader("c:\file.xsd"))

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform