Re: XML link to XSD

Discussion in 'XML' started by Neil Mowforth, Aug 25, 2004.

  1. Not sure why outlook blocked the xsd document but here is the copied version
    of it...

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:annotation>

    <xsd:documentation>

    Simpsons XML schema.

    </xsd:documentation>

    </xsd:annotation>



    <xsd:element name="document" type="documentType"/>

    <xsd:complexType name="documentType">

    <xsd:sequence>

    <xsd:element name="season" type="seasonType"/>

    </xsd:sequence>

    <xsd:attribute name="value" type="xsd:int" use="required"/>

    </xsd:complexType>

    <xsd:complexType name="seasonType">

    <xsd:sequence>

    <xsd:element name="episode" type="episodeType"/>

    </xsd:sequence>

    <xsd:attribute name="code" type="xsd:string"/>

    <xsd:attribute name="owned" type="xsd:string" use="default" value="no"/>

    </xsd:complexType>

    <xsd:complexType name="episodeType">

    <xsd:element name="title" type="xsd:string"/>

    <xsd:element name="firstair" type="date"/>

    </xsd:complexType>

    </xsd:schema>

    "Neil Mowforth" <> wrote in message
    news:1E3Xc.3781$...
    > Hi
    >
    > I'm struggling to tell my XML document to look at XSD document.
    >
    > There are some deliberate XSD violations in there but no matter what links
    > I've tried no validation errors come up.
    >
    > Any help would be appricaiated.
    >
    > Neil
    >
    >
    >
     
    Neil Mowforth, Aug 25, 2004
    #1
    1. Advertising

  2. Neil Mowforth

    dircums Guest

    In the element with your namespace declaration add the
    xsi:SchemaLocation attribute.
    <cbr:CollaboratorData
    xmlns:cbr="http://www.eqos.com/collaborator/data/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.eqos.com/collaborator/data/
    CollaboratorData.xsd">

    "Neil Mowforth" <> wrote in message news:<uJ3Xc.3783$>...
    > Not sure why outlook blocked the xsd document but here is the copied version
    > of it...
    >
    > <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    >
    > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    >
    > <xsd:annotation>
    >
    > <xsd:documentation>
    >
    > Simpsons XML schema.
    >
    > </xsd:documentation>
    >
    > </xsd:annotation>
    >
    >
    >
    > <xsd:element name="document" type="documentType"/>
    >
    > <xsd:complexType name="documentType">
    >
    > <xsd:sequence>
    >
    > <xsd:element name="season" type="seasonType"/>
    >
    > </xsd:sequence>
    >
    > <xsd:attribute name="value" type="xsd:int" use="required"/>
    >
    > </xsd:complexType>
    >
    > <xsd:complexType name="seasonType">
    >
    > <xsd:sequence>
    >
    > <xsd:element name="episode" type="episodeType"/>
    >
    > </xsd:sequence>
    >
    > <xsd:attribute name="code" type="xsd:string"/>
    >
    > <xsd:attribute name="owned" type="xsd:string" use="default" value="no"/>
    >
    > </xsd:complexType>
    >
    > <xsd:complexType name="episodeType">
    >
    > <xsd:element name="title" type="xsd:string"/>
    >
    > <xsd:element name="firstair" type="date"/>
    >
    > </xsd:complexType>
    >
    > </xsd:schema>
    >
    > "Neil Mowforth" <> wrote in message
    > news:1E3Xc.3781$...
    > > Hi
    > >
    > > I'm struggling to tell my XML document to look at XSD document.
    > >
    > > There are some deliberate XSD violations in there but no matter what links
    > > I've tried no validation errors come up.
    > >
    > > Any help would be appricaiated.
    > >
    > > Neil
    > >
    > >
    > >
     
    dircums, Sep 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,109
    Markus
    Nov 22, 2005
  2. Matt
    Replies:
    3
    Views:
    37,246
    MKNDK
    Sep 11, 2008
  3. stiank81
    Replies:
    4
    Views:
    15,404
    stiank81
    Jun 26, 2005
  4. Rushi
    Replies:
    1
    Views:
    555
  5. Replies:
    0
    Views:
    562
Loading...

Share This Page