I have defined a xml schema as below
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PacketTemplate"
targetNamespace="http://tempuri.org/PacketTemplate.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/PacketTemplate.xsd"
xmlns:mstns="http://tempuri.org/PacketTemplate.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:group name="packetTemplate">
<xs:sequence id="packetTemplateSequence" >
<xs:element name="packetType" maxOccurs="1" minOccurs="1" nillable="false" >
<xs:complexType >
<xs:attribute name="packetCode" type="xs:string" use="required"></xs:attribute>
<xs:attribute name="packetTypeIncoming" type="xs:boolean" use="required"></xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="packetFieldInfo" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="fieldName" type="xs:Name" use="required"></xs:attribute>
<xs:attribute name="fieldNumber" type="xs:integer" use="required"></xs:attribute>
<xs:attribute name="conversionCode" type="xs:integer" use="required"></xs:attribute>
<xs:attribute name="fieldInUse" type="xs:boolean" use="required"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
now when i write xml file corresponding to this schema i am not able to use intellisense features like it should show all of possible tags in my file?
Beside that what should i do so that this xml file refer the schema file i have defined? Xml file is as below.
<?xml version="1.0" encoding="utf-8" ?>
<packetTemplate>
<packetType packetCode="601" packetTypeIncoming="123" fieldInUse="true">
</packetType>
</packetTemplate>