If you have something like the following in your schema:

<choice>
  <any>
  <element name="e"/>
</choice>

Then it's a violation of the constraint "unique particle attribution". The
reason is that the two branches of the <choice> overlap: you won't be able
to know which branch to choose if element <e> appears in the instance.
Another example of violation of this constraint is:

<element name="e" minOccurs="0"/>
<element name="e"/>

Again, you won't know to which particle an element <e> should match.

You can search for "unique particle attribution" in the structure spec to
get more accurate description.

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



                                                                                
                                    
                    "Kumuda                                                     
                                    
                    Rajarshi"             To:     <[EMAIL PROTECTED]>           
                         
                    <[EMAIL PROTECTED]       cc:                                
                                       
                    gmate.com>            Subject:     Re: Error while 
validating an XML against Schema             
                                                                                
                                    
                    05/23/2001                                                  
                                    
                    09:32 AM                                                    
                                    
                    Please respond                                              
                                    
                    to                                                          
                                    
                    xerces-j-user                                               
                                    
                                                                                
                                    
                                                                                
                                    



                                                                                
               
 Hello                                                                          
               
 Thank you so much, My problem is solved.                                       
               
 :-)                                                                            
               
 But Can you please tell me how to remove that error after making the feature   
               
 http://apache.org/xml/features/validation/schema-full-checking true.           
               
                                                                                
               
 Why Am I getting that Problem?                                                 
               
 Thank you                                                                      
               
                                                                                
               
                                                                                
               
 -------Original Message-------                                                 
               
                                                                                
               
 From: [EMAIL PROTECTED]                                                        
    
 Date: Tuesday, April 23, 2002 06:23:22 PM                                      
               
 To: [EMAIL PROTECTED]                                                          
    
 Subject: Re: Error while validating an XML against Schema                      
               
                                                                                
               
 Turning off the feature                                                        
               
 "http://apache.org/xml/features/validation/schema-full-checking"; would do      
               
 the trick.                                                                     
               
                                                                                
               
 But it is indeed an error in the schema, and should be fixed.                  
               
                                                                                
               
 Sandy Gao                                                                      
               
 Software Developer, IBM Canada                                                 
               
 (1-905) 413-3255                                                               
               
 [EMAIL PROTECTED]                                                              
             
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
 "Kumuda                                                                        
               
 Rajarshi" To: <[EMAIL PROTECTED]>                                              
    
 <[EMAIL PROTECTED] cc:                                                         
                  
 gmate.com> Subject: Error while validating an XML against Schema               
               
                                                                                
               
 05/23/2001                                                                     
               
 06:34 AM                                                                       
               
 Please respond                                                                 
               
 to                                                                             
               
 xerces-j-user                                                                  
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
 Hello                                                                          
               
 I am getting the following error while validating an XML,                      
               
                                                                                
               
 [Error] :-1:-1: Schema error: cos-nonambig: (xmlns:xsd:null) and (##any:*) 
viola              
 te the "Unique Particle Attribution" rule.                                     
               
                                                                                
               
 In my Schema I have an Element which is of type #any.                          
               
 But I can't change my Schema,                                                  
               
 So, without changing Schema, How to overcome this Problem while Validating     
               
 Thank you                                                                      
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
 ____________________________________________________                           
               
 (Embedded image moved to file: pic17380.gif) IncrediMail - Email has           
               
 finally evolved - Click Here                                                   
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               
                                                                                
               


____________________________________________________
(Embedded image moved to file: pic03730.gif)  IncrediMail - Email has
finally evolved - Click Here

<<attachment: pic03730.gif>>

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

Reply via email to