<xsd:complexType name="databaseType">
   <xsd:sequence>
     <xsd:element name="table" type="tableType" maxOccurs="unbounded"/>
   </xsd:sequence>
   <xsd:attribute name="datasource" type="xsd:string" use="required"/>
 </xsd:complexType>

HTH,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                                                
                      [EMAIL PROTECTED]                                         
                                                
                      echnics.com              To:       [EMAIL PROTECTED]      
                                     
                      (Jeffery B.              cc:                              
                                                
                      Rancier)                 Subject:  [Jeffery B. Rancier] 
newbie schema question                            
                                                                                
                                                
                      08/18/2003 03:45                                          
                                                
                      PM                                                        
                                                
                      Please respond to                                         
                                                
                      xerces-j-user                                             
                                                
                                                                                
                                                
                                                                                
                                                




X-From-Line: nobody Mon Aug 18 15:25:58 2003
To: [EMAIL PROTECTED]
Subject: newbie schema question
From: [EMAIL PROTECTED] (Jeffery B. Rancier)
Date: Mon, 18 Aug 2003 15:25:54 -0400
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt)
Lines: 104
Xref: JRANCIER sent-to-misc:2152
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===-=-="

Hello All.
Can anyone tell me the proper syntax for grouping attributes and
elements in a complexType?  (if that's even my problem) I have the
following complexType:

,----
| <xsd:complexType name="databaseType">
|   <xsd:attribute name="datasource" type="xsd:string" use="required"/>
|   <xsd:element name="table" type="tableType" maxOccurs="unbounded"/>
| </xsd:complexType>
`----

And I'm getting the following error:

,----
| [Error] sgdb.xsd:32:73: s4s-elt-invalid-content.1: The content of
'databaseType'
|  is invalid.  Element 'element' is invalid, misplaced, or occurs too
often.
`----

I've tried placing the xsd:sequence grouping around, but that
complained about the attribute.  Thanks in advance.  Also, attached
are is the schema and the instance document.  Any advice would be
greatly appreciated.




--
Thanks,
Jeff

,----
| Jeffery B. Rancier
|
| Softechnics
| a METTLER TOLEDO company
`----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

#### sgdb.xsd has been removed from this note on August 18 2003 by Sandy
Gao
#### untitled.xml has been removed from this note on August 18 2003 by
Sandy Gao



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to