Skip to content

validate method should read schema version from the file #332

Open
@sonnb

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions