Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: XML link to XSD

Reply
Thread Tools

Re: XML link to XSD

 
 
Neil Mowforth
Guest
Posts: n/a
 
      08-25-2004
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 xmlnssd="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" <(E-Mail Removed)> wrote in message
news:1E3Xc.3781$(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
 
dircums
Guest
Posts: n/a
 
      09-01-2004
In the element with your namespace declaration add the
xsi:SchemaLocation attribute.
<cbr:CollaboratorData
xmlns:cbr="http://www.eqos.com/collaborator/data/"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"

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

"Neil Mowforth" <(E-Mail Removed)> wrote in message news:<uJ3Xc.3783$(E-Mail Removed)>...
> 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 xmlnssd="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" <(E-Mail Removed)> wrote in message
> news:1E3Xc.3781$(E-Mail Removed)...
> > 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
> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert XML to XSD? or DTD to XSD? Matt XML 3 09-11-2008 12:40 PM
Overriding XSD locations when validating an xml document with multiple xsd references anthony@jayasekera.net Java 0 08-25-2006 11:22 AM
Validation of XSD (XML Schema) against XSD Rushi XML 1 12-09-2005 08:12 AM
XML + XSD: Is it possible to get all errors against the XSD? Markus Java 1 11-22-2005 02:53 PM
XML schema - Make xsd include another xsd stiank81 XML 4 06-26-2005 05:11 PM



Advertisments