Open
Description
In the parse
method, it does read the schema version from the source file which is working fine. But when users call the isValid
or validate
method without specify a schema version it always use latest version as default. This does not work for the case of XML since the xmlns in the source file does not match with the one in the latest version.
In library we have a method to get the schema version from the source file but this method is private and cannot be used by the users. It means in order to get correct version, users need to check themselves before hand.
I suggest we should read schema version automatically as we do with the parse
method.
Activity