all groups > dotnet xml > august 2004 >
You're in the

dotnet xml

group:

XML/XSD: Show available attribute values from XSD in Intellisense


XML/XSD: Show available attribute values from XSD in Intellisense Don
8/30/2004 2:37:07 PM
dotnet xml:
Hi:

I want to limit the values that can be entered for particular attributes.

1) I have created an XSD from my XML document.
2) I dropped that XSD file into the following directory C:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml
3) When I use VS.NET to create a new XML document, I do get the
intellisense working (all attributes and elements show up).

However, I want the intellisense also show the list of possible values that
can be used for particular attributes. How do I do this?

Thanks,

Don

Re: XML/XSD: Show available attribute values from XSD in Intellisense Zafar Abbas [MSFT]
8/30/2004 3:05:36 PM
I dont think intellisense would perform this for you.
You can manually delve into the schema and find out that values but dont
know if you will be interested in that since it will not show up in
intellisense.


[quoted text, click to view]

Re: XML/XSD: Show available attribute values from XSD in Intellisense Don
8/30/2004 3:11:09 PM
So if I add my own enum values manually like this, you're saying they won't
show up in intellisense?:

<xs:element name="car" type="carType"/><xs:simpleType name="carType">
<xs:restriction base="xs:string">
<xs:enumeration value="Audi"/>
<xs:enumeration value="Golf"/>
<xs:enumeration value="BMW"/>
</xs:restriction>
</xs:simpleType>



[quoted text, click to view]

Re: XML/XSD: Show available attribute values from XSD in Intellisense Zafar Abbas [MSFT]
8/30/2004 7:09:04 PM
I had misunderstood your problem.

Yes, the enumeration values should show up in the intellisense while you
construct your xml document?


[quoted text, click to view]

AddThis Social Bookmark Button