-
Notifications
You must be signed in to change notification settings - Fork 4
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
Introduce a new method to validate schema that throws #77
Conversation
Maybe bump the version in build.gradle? |
case the schema was not created.
public boolean validateOrThrow(Document xmlDocument, String version) | ||
throws WatchFaceFormatValidationException { | ||
if (!isSupportedVersion(version)) { | ||
Log.e("Validator not support the version #" + version); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log.e("Validator does not support version #" + version);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
resourceManager.getXsdFile(version).getCanonicalPath(), new DOMSource(xmlDocument)); | ||
return true; | ||
} catch (SAXException | IOException e) { | ||
Log.e(e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log.e("Could not validate xml", e);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.