Difference between xs and xsd schema

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Gray

    Difference between xs and xsd schema

    Hi,

    Very new (today actually) to XML and was wondering what the difference
    between a schema starting <xs:schema and <xsd:schema.

    From what I've read XSD is a Microsoft developed schema language XS is
    a web consortium standard.

    I'm looking to load an orders file (XML version 1) into SQL server
    2000 or 2005 using VB script. Which would be the best schema language
    for this purpose?


    Thanks in advance
    Dave
  • Martin Honnen

    #2
    Re: Difference between xs and xsd schema

    David Gray wrote:
    Very new (today actually) to XML and was wondering what the difference
    between a schema starting <xs:schema and <xsd:schema.
    The prefix (e.g. xs or xsd) does not matter at all, what matters is the
    namespace URI the prefix is bound to. If it is
    http://www.w3.org/2001/XMLSchema then it is the W3C XML schema language.
    So
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"></xs:schema>
    is the same as
    <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"></xsd:schema>
    You can choose a different prefix if you like.



    --

    Martin Honnen

    Comment

    • David Gray

      #3
      Re: Difference between xs and xsd schema

      Ok thanks, that makes sense.

      If I'm going to be using VB and SQL server I'm guessing that the
      schema namespace I should use are the MS version found at
      schemas-microsoft-com:xml-data

      Cheers
      Dave












      On Tue, 15 Apr 2008 15:08:33 +0200, Martin Honnen <mahotrash@yaho o.de>
      wrote:
      >David Gray wrote:
      >
      >Very new (today actually) to XML and was wondering what the difference
      >between a schema starting <xs:schema and <xsd:schema.
      >
      >The prefix (e.g. xs or xsd) does not matter at all, what matters is the
      >namespace URI the prefix is bound to. If it is
      >http://www.w3.org/2001/XMLSchema then it is the W3C XML schema language.
      >So
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"></xs:schema>
      >is the same as
      <xsd:schema xmlns:xsd="http ://www.w3.org/2001/XMLSchema"></xsd:schema>
      >You can choose a different prefix if you like.

      Comment

      Working...