Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error flagged if the remote schema cannot be accessed! #49

Closed
DavidHaslam opened this issue Jun 2, 2020 · 2 comments
Closed

No error flagged if the remote schema cannot be accessed! #49

DavidHaslam opened this issue Jun 2, 2020 · 2 comments

Comments

@DavidHaslam
Copy link

IIRC, when the path to a remote schema is no longer valid because the domain has gone AWOL, upon trying to validate an XML file, XML Tools would report the connection failure as an error message.

With the current version, 3.0.4.2 no such error message appears and the XML Validation result is OK even for an XML file that has known validation errors.

IMHO, this is a serious "false negative" bug that needs to be fixed ASAP.

@DavidHaslam
Copy link
Author

The following example points to a domain that went AWOL several years ago.

<osis xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace 
      http://www.bibletechnologies.net/osisCore.2.1.1.xsd" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace">

Validation can be done by changing only the path for the .xsd file.

<osis xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace 
      z:/osisCore.2.1.1.xsd" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace">

where subst z: <local_schema_path> (simply for convenience).

It seems not to matter at all that two other osis parameters include the URL of the missing domain.

@LetMeSleepAlready
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants