Parasuram, Arvind wrote:
Dave,
Thanks for responding.

We need to validate XML files against the same XSD files in both our
Java client code and C++ server code. Hence the need to use both
Xerces-J and Xerces-C++.

Since we are using both Xerces-J and Xerces-C++, I wanted to make sure
that the validation is consistent across Java and C++ e.g. if the
validation fails for some reason in the Java client code, I am expecting
the validation to fail for the same reason in the C++ server code as
well.
I doubt you will be able to do that. My experience is that Xerces-J and Xerces-C are inconsistent in their handling of the schema recommendation, although mostly this is in the edge cases. There has been a fair amount of work done to get them aligned, but XML Schema is a very complex recommendation, so it's tough. In addition, there is a fair amount of working tracking the errata that are issued, and I don't know how much effort is being exerted to do that.

In general, trust Xerces-J rather than Xerces-C. However, we would love to hear about the cases where the results are different. We will do our best to get them aligned.

Dave

Reply via email to