Hard to say where you are wrong, since you give very little detail of
what you are doing ;-)
In fact, what the "validate" implementation does is parse the document
provided in an XmlObject, then call .validate() on it (in addition to
parsing the Schema files of course).

So what I can suggest is make sure that you don't have some older/newer
compiled Schemas on your classpath when you execute your java class,
since XmlBeans does dynamic lookup of Schema information when validating
documents.

Radu

-----Original Message-----
From: Stefano Peruzzi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 1:40 AM
To: [email protected]
Subject: validation error, but validate line command says it's ok

Hi all,
something strange is happening. When I parse my xml file from my java
class, I obtain this error:
>> D:\[...]\documenti\sbnmarc_response.xml:0: error:
cvc-complex-type.4: Expected attribute: schemaVersion

Of course, the file does have the schemaVersion attribute!
I also tried the 'validate' line command (specifying the xsd file) and
it says:
sbnmarc_response.xml valid.

Where am I wrong? 
Maybe I should specify the xsd file to parse() o
validate() method in my class? (I don't know how) But the parse method
is on a generated factory class, using 'scomp' command on the same xsd.
I think XMLBeans should do the magic for me.

Thanks for your help,
Stefano


        

        
                
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it

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

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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

Reply via email to