Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it?

How to upload an Xml Schema to my ftp server and have Visual Studio provide intellisense for it?

Scheduled Pinned Locked Moved XML / XSL
csharpvisual-studioxmlhtmldatabase
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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" />

    N 1 Reply Last reply
    0
    • L Lost User

      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" />

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • N Not Active

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups