
Signature
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Hi Stan,
Thx for your answer:
So if i did wel understand you:
so must look like:
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> attributeFormDefault="unqualified"
> targetNamespace="http://berco.com/webservices/WebConfig"
> xmlns="http://berco.com/webservices/WebConfig">
I have another question:
in my Web.config , i have put my custom sections into configuration
section like this:
Web.Config
> <?xml version="1.0"?>
> <!--
[quoted text clipped - 24 lines]
> RemoteObject.ACO.WebEnabled="True"
> />
But, the intellisense won't give my custom sections in configuration
section, i mean, that i must be out <configuration> section to see my
sections in intellisense.
> Hi Sami,
>
> You need to declare a namespace in your "MyCustomSchema.xsd". The XML
> Editor does not support having two schemas with the same namespace listed in
> the schemas property - in your case you have two schemas with no
> targetNamespace.
Stan Kitsis [MSFT] - 30 Mar 2006 22:21 GMT
Hi Sami,
Once you've added a target namespace to your schema, you'll also need to
declare it in the instance document:
<configuration xmlns:myNS="http://berco.com/webservices/WebConfig">
</configuration>
When you do this, you'll get intellisense for your own namespace under
configuration section. This complication is related to the fact that
configuration element has xs:any as a child. This will be changed in the
next release so that you don't have to declare the namespace in your XML,
but for now you have to do it.

Signature
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
> Hi Stan,
> Thx for your answer:
[quoted text clipped - 60 lines]
>> in the schemas property - in your case you have two schemas with no
>> targetNamespace.