1) No. There is no algorithm defined for doing a semantic diff between
two Schemas, so we didn't spend the time to implement anything in this
area. (as you have seen yourself, you don't even need a diff after all,
but something different) But using the SchemaType API you have all you
need to implement some custom logic appropriate to your use-case.
 
2) Yes, XmlBeans fully supports loading and manipulating invalid Schema
documents.
 
Radu


________________________________

From: Ajay Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 8:12 AM
To: [email protected]
Subject: RE: questions on XMLBeans



Let me further qualify point number 1 below. What I really need to do is
compare the two schemas and come up with a 3rd one which contains only
the common definitions.

 

________________________________

From: Ajay Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 11:05 AM
To: [email protected]
Subject: questions on XMLBeans

 

I am evaluating XMLBeans for one of the projects. I have a few
questions:

 

1)       Does XML Beans provide any utility/hooks to compare two
different schema files?

2)       If my XML document deviates slightly from the underlying
schema, can I still load it using XMLBeans... some sort of best effort
XML to Java mapping?

 

Thanks.


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.

Reply via email to