Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XML link to XSD [Thread Next] Re: XML link to XSDTo: NULL Date: 9/1/2004 8:41:00 AM 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" <neilmowforth@h...> wrote in message news:<uJ3Xc.3783$Jg7.1910@n...>...
> 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" <neilmowforth@h...> wrote in message
> news:1E3Xc.3781$Jg7.3384@n......
> > 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
> >
> >
> >
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
