How to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it?
-
Hey, I have an Xml schema that I would like upload to my FTP server and have Visual Studio provide intellisense for it. Now, what I've done is that I've created the schema, uploaded to my server (http://www.vestras.net/moonlite/schemas/ximl), and then write the following in the file I'd like intellisense in:
<ximl:Markup xmlns:ximl='http://www.vestras.net/moonlite/schemas/ximl/'>
</ximl:Markup>
However, Visual Studio doesn't provide intellisense. Here's my schema code:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Ximl"
targetNamespace="http://vestras.net/moonlite/schemas/ximl"
elementFormDefault="qualified"
xmlns="http://vestras.net/moonlite/schemas/ximl"
xmlns:mstns="http://vestras.net/moonlite/schemas/ximl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://vestras.net/moonlite/schemas/ximl http://vestras.net/moonlite/schemas/ximl/ximl.xsd">
<xs:element name="BarItem" id="BarItem">
xs:annotation
xs:documentation
Defines a bar button.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="guid" type="xs:string" use="required" />
<xs:attribute name="text" type="xs:string" use="required" />
<xs:attribute name="image" type="xs:string" use="optional" />
<xs:attribute name="commandClass" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
<xs:complexType name="Markup">
xs:sequence
<xs:element name="Include">
xs:annotation
xs:documentation
Includes the Ximl file at the given path.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="path" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="String">
xs:annotation
xs:documentation
Provides a string resource for later use. The resource attribute must contain a unique ID.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="resource" type="xs:string" use="required" />
<xs:attribute name="value" type="xs:string" use="required" /> -
Hey, I have an Xml schema that I would like upload to my FTP server and have Visual Studio provide intellisense for it. Now, what I've done is that I've created the schema, uploaded to my server (http://www.vestras.net/moonlite/schemas/ximl), and then write the following in the file I'd like intellisense in:
<ximl:Markup xmlns:ximl='http://www.vestras.net/moonlite/schemas/ximl/'>
</ximl:Markup>
However, Visual Studio doesn't provide intellisense. Here's my schema code:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Ximl"
targetNamespace="http://vestras.net/moonlite/schemas/ximl"
elementFormDefault="qualified"
xmlns="http://vestras.net/moonlite/schemas/ximl"
xmlns:mstns="http://vestras.net/moonlite/schemas/ximl"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://vestras.net/moonlite/schemas/ximl http://vestras.net/moonlite/schemas/ximl/ximl.xsd">
<xs:element name="BarItem" id="BarItem">
xs:annotation
xs:documentation
Defines a bar button.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="guid" type="xs:string" use="required" />
<xs:attribute name="text" type="xs:string" use="required" />
<xs:attribute name="image" type="xs:string" use="optional" />
<xs:attribute name="commandClass" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
<xs:complexType name="Markup">
xs:sequence
<xs:element name="Include">
xs:annotation
xs:documentation
Includes the Ximl file at the given path.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="path" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="String">
xs:annotation
xs:documentation
Provides a string resource for later use. The resource attribute must contain a unique ID.
</xs:documentation>
</xs:annotation>
xs:complexType
<xs:attribute name="resource" type="xs:string" use="required" />
<xs:attribute name="value" type="xs:string" use="required" />To get Intillisense for Visual Studio the schema file must be placed here [VS Folder]\Common7\Packages\schemas\xml
I know the language. I've read a book. - _Madmatt
-
To get Intillisense for Visual Studio the schema file must be placed here [VS Folder]\Common7\Packages\schemas\xml
I know the language. I've read a book. - _Madmatt
Okay, so I did that and now the schema shows up on the schema list, however when it is included, it doesn't give me any options, it just says "The 'http://vestras.net/moonlite/schemas/ximl:Markup' element is not declared." What does this mean? The Markup element is declared.